]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/persistent/vectors/vectors.factor
core: Add the shuffler words but without primitives.
[factor.git] / basis / persistent / vectors / vectors.factor
index 862eed1aa906268323f9ffae4aadaf6babdec9c8..368f7d6d3beff4d7228b8c643db3347b6c42c4f6 100644 (file)
@@ -95,7 +95,7 @@ M: persistent-vector ppush ( val pvec -- pvec' )
 
 : node-change-nth ( i node quot -- node' )
     [ clone ] dip [
-        [ clone ] dip [ change-nth ] 2keep drop
+        [ clone ] dip [ change-nth ] keepd
     ] curry change-children ; inline
 
 : (new-nth) ( val i node -- node' )