« first day (2723 days earlier)      last day (215 days later) » 

10:26
0
Q: Scan that splits accumulator and yielded value

Tom HuntingtonProblem: split a list of ints such that the sums of the sublists are bounded (by 10) Here's how I would solve it in python using a scan to do the conditional logic: l = random.choices(range(5), k=30) [2, 3, 3, 1, 4, 0, 3, 2, 0, 3, 3, 1, 2, 0, 2, 1, 2, 4, 4, 3, 1, 4, 2, 0, 3, 1, 4, 1, 0, 2] scan_...

 
1 hour later…
11:28
@StackExchangeFeeds CMC:
 
9 hours later…
20:15
How about {⍵⊆⍨1,2≤⌿⍺|+⍀⍵} ?
Ah, no doesn't work as loose cut values

« first day (2723 days earlier)      last day (215 days later) »