use iota in a couple of places
parent
346636ed3b
commit
a6c7e9d9d4
|
@ -919,7 +919,7 @@ PRIVATE>
|
||||||
<PRIVATE
|
<PRIVATE
|
||||||
|
|
||||||
: generic-flip ( matrix -- newmatrix )
|
: generic-flip ( matrix -- newmatrix )
|
||||||
[ dup first length [ length min ] reduce ] keep
|
[ dup first length [ length min ] reduce iota ] keep
|
||||||
[ [ nth-unsafe ] with { } map-as ] curry { } map-as ; inline
|
[ [ nth-unsafe ] with { } map-as ] curry { } map-as ; inline
|
||||||
|
|
||||||
USE: arrays
|
USE: arrays
|
||||||
|
@ -929,7 +929,7 @@ USE: arrays
|
||||||
|
|
||||||
: array-flip ( matrix -- newmatrix )
|
: array-flip ( matrix -- newmatrix )
|
||||||
{ array } declare
|
{ array } declare
|
||||||
[ dup first array-length [ array-length min ] reduce ] keep
|
[ dup first array-length [ array-length min ] reduce iota ] keep
|
||||||
[ [ { array } declare array-nth ] with { } map-as ] curry { } map-as ;
|
[ [ { array } declare array-nth ] with { } map-as ] curry { } map-as ;
|
||||||
|
|
||||||
PRIVATE>
|
PRIVATE>
|
||||||
|
|
Loading…
Reference in New Issue