Add until(cond; next); fix #639
This commit is contained in:
1 parent
2075bec60f
commit
be11b2768f
3 files changed
+26
No files matched your search
@@ -250,6 +250,10 @@ null
|
||||
1
|
||||
[1,2,4,8]
|
||||
|
||||
[.[]|[.,1]|until(.[0] < 1; [.[0] - 1, .[1] * .[0]])|.[1]]
|
||||
[1,2,3,4,5]
|
||||
[1,2,6,24,120]
|
||||
|
||||
[foreach .[] as $item ([3, null]; if .[0] < 1 then break else [.[0] -1, $item] end; .[1])]
|
||||
[11,22,33,44,55,66,77,88,99]
|
||||
[11,22,33]
|
||||
|
||||
Reference in new issue
Block a user