Skip to content

Commit

Permalink
sequences.extras: adding 2map!.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjbq7 committed Aug 9, 2012
1 parent bb3974e commit 567b0ab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions extra/sequences/extras/extras.factor
Original file line number Diff line number Diff line change
Expand Up @@ -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.