1 ! Copyright (C) 2011 John Benediktsson
2 ! See http://factorcode.org/license.txt for BSD license
4 USING: combinators command-line io kernel math.order math.parser
5 math.ranges namespaces sequences ;
10 "Usage: seq [first [incr]] last" print ;
13 swap <range> [ number>string print ] each ;
16 command-line get dup length {
17 { 1 [ first string>number [ 1 1 ] dip seq ] }
18 { 2 [ first2 [ string>number ] bi@ 2dup before? 1 -1 ? swap seq ] }
19 { 3 [ first3 [ string>number ] tri@ seq ] }