sequences.extras: adding 2map-into.

db4
John Benediktsson 2012-08-08 20:35:09 -07:00
parent e5b36cfbff
commit 5003b97509
1 changed files with 3 additions and 0 deletions

View File

@ -227,3 +227,6 @@ PRIVATE>
: map-index! ( ... seq quot: ( ... elt index -- ... newelt ) -- ... seq )
over [ [ (each-index) ] dip collect ] keep ; inline
: 2map-into ( seq1 seq2 quot into -- )
[ (2each) ] dip collect ; inline