Merge branch 'master' of git://factorcode.org/git/factor

db4
Doug Coleman 2008-12-09 21:55:00 -06:00
commit f9332aa907
1 changed files with 2 additions and 1 deletions

View File

@ -845,9 +845,10 @@ PRIVATE>
USE: arrays
: array-length ( array -- len )
{ array } declare length>> ;
{ array } declare length>> ; inline
: array-flip ( matrix -- newmatrix )
{ array } declare
[ dup first array-length [ array-length min ] reduce ] keep
[ [ array-nth ] with { } map-as ] curry { } map-as ;