Devon McCormick
I can't find the original email! (Well, I could look in the archive, but it's not in my inbox!)
I was offering:
0 5 9 99 _ (+/@:(<:/)</.]) _1 0 1
2 3 4 5 6 7 8 9 99
+--+---------+-------+-+--+
|_1|0 1 2 3 4|5 6 7 8|9|99|
+--+---------+-------+-+--+
noting that you need an extra item on the lhs to get the subsets you want,
but then saw it's essentially the same as - though less succint than -
Raul's 2nd verb, albeit with an operation on the lhs:
(<:0 5 9 99 _) (I. </. ])_1 0 1
2 3 4 5 6 7 8 9 99
+--+---------+-------+-+--+
|_1|0 1 2 3 4|5 6 7 8|9|99|
+--+---------+-------+-+--+
suggesting this tweak to verb2:
0 5 9 99 _ ((I.~<:)~</.]) _1 0 1
2 3 4 5 6 7 8 9 99
+--+---------+-------+-+--+
|_1|0 1 2 3 4|5 6 7 8|9|99|
+--+---------+-------+-+--+
although you might prefer to respecify the lhs as the upper bounds
to each required subset, saving that ugly tweak:
(_1 4 8 9 ) (I. </. ]) _1 0 1 2 3 4
5 6 7 8 9 99
+--+---------+-------+-+--+
|_1|0 1 2 3 4|5 6 7 8|9|99|
+--+---------+-------+-+--+
The upper bound of _ isn't needed, and you can of course drop the
first and or last subset.
Any use?
Mike