]> gitweb.factorcode.org Git - factor.git/blobdiff - extra/tetris/board/board.factor
core: Rename iota to <iota> so we can have TUPLE: iota ... ; instead of TUPLE: iota...
[factor.git] / extra / tetris / board / board.factor
index 44d2837aaf725c7322ee0e74b17e6d82db8a3135..e41dc1f7259e17b8242e02e7b7dd13c3f8ace69d 100644 (file)
@@ -6,7 +6,7 @@ IN: tetris.board
 TUPLE: board { width integer } { height integer } rows ;
 
 : make-rows ( width height -- rows )
-    iota [ drop f <array> ] with map ;
+    <iota> [ drop f <array> ] with map ;
 
 : <board> ( width height -- board )
     2dup make-rows board boa ;
@@ -24,8 +24,8 @@ TUPLE: board { width integer } { height integer } rows ;
 : block-free? ( board block -- ? ) block not ;
 
 : block-in-bounds? ( board block -- ? )
-    [ first swap width>> iota bounds-check? ]
-    [ second swap height>> iota bounds-check? ] 2bi and ;
+    [ first swap width>> <iota> bounds-check? ]
+    [ second swap height>> <iota> bounds-check? ] 2bi and ;
 
 : location-valid? ( board block -- ? )
     2dup block-in-bounds? [ block-free? ] [ 2drop f ] if ;