(re-split) ( string regexp quot: ( from to seq -- slice ) -- new-slices )


Vocabulary
regexp.private

Inputs
stringan object
regexpan object
quota quotation with stack effect ( from to seq -- slice )


Outputs
new-slicesan object


Definition


:: (re-split)
( string regexp quot: ( from to seq -- slice ) -- new-slices )
0 string regexp
[| end start end' string | end' end start string quot call ]
map-matches swap string length string quot call suffix ;
inline