]> gitweb.factorcode.org Git - factor.git/blobdiff - extra/ui/gadgets/charts/lines/lines.factor
sequences: bound -> index-or-length
[factor.git] / extra / ui / gadgets / charts / lines / lines.factor
index f56c9f93588fe87877c3141bca9e1f6e2c665eac..89d9fb58c4ba5dda7c6d6909c33c2002c19be004 100644 (file)
@@ -38,7 +38,7 @@ ALIAS: y second
 ! right of the index, plus one that's not equal, if requested.
 :: adjusted-head-slice ( n elt plus-one? seq -- slice )
     n seq elt x '[ x _ = not ] find-from drop seq swap
-    [ plus-one? [ 1 + ] when bound head-slice ] when* ;
+    [ plus-one? [ 1 + ] when index-or-length head-slice ] when* ;
 
 ! : data-rect ( data -- rect )
 !    [ [ first x ] [ last x ] bi ] keep