]> gitweb.factorcode.org Git - factor.git/blob - extra/benchmark/typecheck3/typecheck3.factor
factor: more using trim
[factor.git] / extra / benchmark / typecheck3 / typecheck3.factor
1 USING: math kernel slots.private ;
2 IN: benchmark.typecheck3
3
4 TUPLE: hello n ;
5
6 : hello-n* ( obj -- val ) 2 slot ;
7
8 : foo ( obj -- obj n ) 0 100000000 [ over hello-n* + ] times ;
9
10 : typecheck3-benchmark ( -- ) 0 hello boa foo 2drop ;
11
12 MAIN: typecheck3-benchmark