Permalink
Browse files

sequences.extras: adding 2map!.

  • Loading branch information...
1 parent bb3974e commit 567b0abdb74b0837f85a0c2a1d9bdd6567afc440 @mrjbq7 mrjbq7 committed Aug 9, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 extra/sequences/extras/extras.factor
@@ -230,3 +230,6 @@ PRIVATE>
: 2map-into ( seq1 seq2 quot into -- )
[ (2each) ] dip collect ; inline
+
+: 2map! ( ... seq1 seq2 quot: ( ... elt1 elt2 -- ... newelt ) -- ... seq1 )
+ pick [ 2map-into ] keep ; inline

0 comments on commit 567b0ab

Please sign in to comment.