sequences.windowed: fixup stack effect for rolling-map.
parent
a82e916bcf
commit
8321aa1e6a
|
@ -24,7 +24,7 @@ M: windowed-sequence length
|
||||||
: in-bounds ( a b sequence -- a' b' sequence )
|
: in-bounds ( a b sequence -- a' b' sequence )
|
||||||
[ nip in-bound ] [ [ nip ] dip in-bound ] [ 2nip ] 3tri ;
|
[ nip in-bound ] [ [ nip ] dip in-bound ] [ 2nip ] 3tri ;
|
||||||
|
|
||||||
:: rolling-map ( seq n quot: ( slice -- elt ) -- newseq )
|
:: rolling-map ( ... seq n quot: ( ... slice -- ... elt ) -- ... newseq )
|
||||||
seq length [
|
seq length [
|
||||||
[ n [-] ] [ seq <slice-unsafe> ] bi quot call
|
[ n [-] ] [ seq <slice-unsafe> ] bi quot call
|
||||||
] { } map-integers ; inline
|
] { } map-integers ; inline
|
||||||
|
|
Loading…
Reference in New Issue