From 4bab2ba8071f97fb4c92f858c03998e818bc0dc8 Mon Sep 17 00:00:00 2001 From: Slava Pestov Date: Fri, 15 Jan 2010 06:15:15 +1300 Subject: [PATCH] tetris.gl: update for iota --- extra/tetris/gl/gl.factor | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extra/tetris/gl/gl.factor b/extra/tetris/gl/gl.factor index 0169249e81..8326da3584 100644 --- a/extra/tetris/gl/gl.factor +++ b/extra/tetris/gl/gl.factor @@ -26,10 +26,10 @@ IN: tetris.gl [ gl-color 2array draw-block ] [ 3drop ] if ; : draw-row ( y row -- ) - dup length -rot [ (draw-row) ] 2curry each ; + [ length iota swap ] keep [ (draw-row) ] 2curry each ; : draw-board ( board -- ) - rows>> dup length swap + rows>> [ length iota ] keep [ dupd nth draw-row ] curry each ; : scale-board ( width height board -- )