]> gitweb.factorcode.org Git - factor.git/blob - extra/benchmark/wrap/wrap.factor
core: Rename iota to <iota> so we can have TUPLE: iota ... ; instead of TUPLE: iota...
[factor.git] / extra / benchmark / wrap / wrap.factor
1 ! Copyright (C) 2012 John Benediktsson
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: kernel math math.parser sequences wrap wrap.strings ;
4 IN: benchmark.wrap
5
6 : wrap-benchmark ( -- )
7     1,000 <iota> [ number>string ] map " " join
8     100 [ dup 80 wrap-string drop ] times drop ;
9
10 MAIN: wrap-benchmark