iota: Fix second iota -> <iota> in line several times.

char-rename
Doug Coleman 2017-06-02 15:38:05 -05:00
parent e189954ecc
commit 195630f637
4 changed files with 4 additions and 4 deletions

View File

@ -216,7 +216,7 @@ INSTANCE: combinations immutable-sequence
:: combinations-quot ( seq k quot -- seq quot' )
seq length :> n
n k nCk <iota> k iota >array seq quot n
n k nCk <iota> k <iota> >array seq quot n
'[ drop _ [ _ nths-unsafe @ ] keep _ next-combination drop ] ; inline
PRIVATE>

View File

@ -24,7 +24,7 @@ IN: benchmark.mandel
[ color-map [ length mod ] keep nth ] [ B{ 0 0 0 } ] if* ; inline
: render ( -- )
height <iota> [ width iota swap '[ _ c pixel color write ] each ] each ; inline
height <iota> [ width <iota> swap '[ _ c pixel color write ] each ] each ; inline
: ppm-header ( -- )
ascii encode-output

View File

@ -148,7 +148,7 @@ DEFER: create
[ oversampling /f ] bi@ 0.0 double-array{ } 3sequence ;
: ss-grid ( -- ss-grid )
oversampling <iota> [ oversampling iota [ ss-point ] with map ] map ;
oversampling <iota> [ oversampling <iota> [ ss-point ] with map ] map ;
: ray-grid ( point ss-grid -- ray-grid )
[

View File

@ -120,7 +120,7 @@ TYPED:: perlin-noise ( table: byte-array point: float-4 -- value: float )
faded trilerp ;
MEMO: perlin-noise-map-coords ( dim -- coords )
first2 <iota> [| x y | x iota [ y 0.0 0.0 float-4-boa ] float-4-array{ } map-as ] with map concat ;
first2 <iota> [| x y | x <iota> [ y 0.0 0.0 float-4-boa ] float-4-array{ } map-as ] with map concat ;
TYPED:: perlin-noise-map ( table: byte-array transform: matrix4 coords: float-4-array -- map: float-array )
coords [| coord | table transform coord m4.v perlin-noise ] data-map( float-4 -- c:float )