]> gitweb.factorcode.org Git - factor.git/blobdiff - extra/jamshred/tunnel/tunnel.factor
rename peek -> last and update all usages
[factor.git] / extra / jamshred / tunnel / tunnel.factor
index 7e124dc713b940d677d86a589b614df5e43ee149..59120cc5783ce8a07bcc3500acece5c4741b0ba6 100644 (file)
@@ -25,7 +25,7 @@ CONSTANT: random-rotation-angle $[ pi 20 / ]
 
 : (random-segments) ( segments n -- segments )
     dup 0 > [
-        [ dup peek random-segment over push ] dip 1- (random-segments)
+        [ dup last random-segment over push ] dip 1- (random-segments)
     ] [ drop ] if ;
 
 CONSTANT: default-segment-radius 1