! Copyright (C) 2005, 2006 Alex Chapman, Daniel Ehrenberg
! See http://factorcode.org/license.txt for BSD license
-USING: kernel sequences math sequences.private strings
-accessors locals fry ;
+USING: accessors arrays fry kernel math sequences strings ;
IN: circular
TUPLE: circular { seq read-only } { start integer } ;
[ [ 1 + ] change-length set-last ] if ;
: <growing-circular> ( capacity -- growing-circular )
- { } new-sequence 0 0 growing-circular boa ; inline
+ f <array> 0 0 growing-circular boa ; inline
TUPLE: circular-iterator
{ circular read-only } { n integer } { last-start integer } ;