]> gitweb.factorcode.org Git - factor.git/blobdiff - core/growable/growable.factor
sorting: still use <copier>
[factor.git] / core / growable / growable.factor
index 68c6678fae520a82fdb20406f44c53c4648f6d14..05ed40c92f69d2424b379ac07ae2490393b6bd88 100644 (file)
@@ -19,6 +19,10 @@ M: growable set-nth-unsafe underlying>> set-nth-unsafe ; inline
     [ length integer>fixnum-strict ] keep
     [ set-nth-unsafe ] [ [ 1 fixnum+fast ] dip length<< ] 2bi ; inline
 
+: push-all-unsafe ( from to src dst -- )
+    [ over - swap ] 2dip pickd [ length integer>fixnum-strict ] keep
+    [ [ fixnum+fast ] dip length<< ] 2keep <copier> (copy) drop ; inline
+
 PRIVATE>
 
 : capacity ( seq -- n ) underlying>> length ; inline