combinators definitions effects fry generic generic.single
generic.standard hashtables io.binary io.encodings
io.streams.string kernel kernel.private math math.parser
-namespaces parser sbufs sequences splitting splitting.private
-strings vectors words ;
+namespaces parser sbufs sequences sequences.private splitting
+splitting.private strings vectors words ;
IN: hints
GENERIC: specializer-predicate ( spec -- quot )
set-specializer
] each
-\ subseq
-{ { fixnum fixnum string } { fixnum fixnum array } }
-set-specializer
+{ subseq subseq-unsafe } [
+ { { fixnum fixnum string } { fixnum fixnum array } }
+ set-specializer
+] each
\ reverse!
{ { string } { array } }
#! The check-length call forces partial dispatch
[ [ length check-length 0 ] keep ] 2dip <copy> (copy) drop ; inline
+: subseq-unsafe ( from to seq -- subseq )
+ [ subseq>copy (copy) ] keep like ;
+
PRIVATE>
: subseq ( from to seq -- subseq )