0accumulate-as ( ... seq quot: ( ... prev elt -- ... next ) exemplar -- ... newseq )


Vocabulary
sequences.extras

Inputs
seqan object
quota quotation with stack effect ( ... prev elt -- ... next )
exemplaran object


Outputs
newseqan object


Definition


: 0accumulate-as
( ... seq quot: ( ... prev elt -- ... next ) exemplar -- ... newseq )
pick empty?
[ 2nip clone ]
[ [ 0 ] 2dip [ swapd [ dup ] compose ] dip map-as nip ] if ;
inline