(split-harvest) ( ... seq quot: ( ... elt -- ... ? ) slice-quot -- ... pieces )


Vocabulary
splitting.extras.private

Inputs
seqan object
quota quotation with stack effect ( ... elt -- ... ? )
slice-quotan object


Outputs
piecesan object


Definition


:: (split-harvest)
( ... seq quot: ( ... elt -- ... ? ) slice-quot -- ... pieces )
seq [ quot call not ] find drop [
[
[ seq quot find-from drop ] 1check
[ seq length ] unless* dup
] [ f f f ] if*
] [
[ seq slice-quot call ] 1check
[ 1 + seq [ quot call not ] find-from drop ] dip
] produce 2nip ; inline