aboutsummaryrefslogtreecommitdiff
path: root/challenge-196/aecepoglu/bqn/ch-2.bqn
blob: 4fb489d0603d819942b48e7e767e4144c79b316d (plain)
1
2
3
4
5
6
7
8
9
10
F{𝕊a:
a tl1=(⊢-»⊢)a # the tails of sequences (all but firsts)
a h(«>⊢) tl    # the heads of squences
# name each group,
# remove anything that doesn't belong to any sequence
# perform grouping
# get rid of empty groups
(0<≠¨)/ a˜(+`h)(×-¬)(htl)
}
F¨13457,123679,01245689