I have a list `1.0, 2.0, 0.0, 1.0, 2.0,0.0, 2.0, 2...
# announcements
x
I have a list
1.0, 2.0, 0.0, 1.0, 2.0,0.0, 2.0, 2.0
, I want 3 lists
1.0, 2.0
,
0.0, 1.0, 2.0
,
0.0, 2.0, 2.0
where
0.0
is a sort of delimiter (so if I had more of those, it would be in the list to the right. Is there an obvious operation to make this happen?
s
I don’t think there is an already baked operation/function out there. But it would be similar to a `String`’s
split
operation, correct (whose results include the delimiter)?
x
yeah
and/or maybe I’m looking for something like
chunked
or
windowed
except the return can have an arbitrary size