mirror of
https://github.com/urbit/shrub.git
synced 2024-12-12 10:29:01 +03:00
Fixed ++reap product type
This commit is contained in:
parent
38feec07ec
commit
ccd3c7e07e
@ -702,10 +702,9 @@
|
||||
::
|
||||
++ reap :: replicate
|
||||
|* [a=@ b=*]
|
||||
=| c=(list)
|
||||
|- ^- (list)
|
||||
?: =(a 0) c
|
||||
$(c [b c], a (dec a))
|
||||
|- ^- (list ,_b)
|
||||
?~ a ~
|
||||
[b $(a (dec a))]
|
||||
::
|
||||
++ reel :: right fold
|
||||
~/ %reel
|
||||
|
Loading…
Reference in New Issue
Block a user