rosetta-code.bitmap-bezier: use zip.
parent
c4d139ca9f
commit
b0b9524fcf
|
@ -24,7 +24,7 @@ IN: rosetta-code.bitmap-bezier
|
|||
|
||||
! turns a list of points into the list of lines between them
|
||||
: points-to-lines ( seq -- seq )
|
||||
dup rest [ 2array ] 2map ;
|
||||
dup rest zip ;
|
||||
|
||||
: draw-lines ( {R,G,B} points image -- )
|
||||
[ [ first2 ] dip draw-line ] curry with each ;
|
||||
|
|
Loading…
Reference in New Issue