math.extras: remove variable effects from cum-reduce for now.
parent
35bd1a4bbc
commit
35677bc5fa
|
@ -155,7 +155,7 @@ PRIVATE>
|
||||||
: until-zero ( n quot -- )
|
: until-zero ( n quot -- )
|
||||||
[ dup zero? ] swap until drop ; inline
|
[ dup zero? ] swap until drop ; inline
|
||||||
|
|
||||||
: cum-reduce ( ... seq identity quot: ( ... prev elt -- ... next ) -- ... result cum-result )
|
: cum-reduce ( seq identity quot: ( prev elt -- next ) -- result cum-result )
|
||||||
[ dup rot ] dip dup '[ _ curry dip dupd @ ] each ; inline
|
[ dup rot ] dip dup '[ _ curry dip dupd @ ] each ; inline
|
||||||
|
|
||||||
<PRIVATE
|
<PRIVATE
|
||||||
|
|
Loading…
Reference in New Issue