benchmark.fannkuch: use iota
parent
86da8ebed9
commit
c4cd6e0787
|
@ -24,7 +24,7 @@ IN: benchmark.fannkuch
|
|||
|
||||
: fannkuch ( n -- )
|
||||
[
|
||||
[ 0 0 ] dip [ 1 + ] B{ } map-as
|
||||
[ 0 0 ] dip iota [ 1 + ] B{ } map-as
|
||||
[ fannkuch-step ] each-permutation nip
|
||||
] keep
|
||||
"Pfannkuchen(" write pprint ") = " write . ;
|
||||
|
|
Loading…
Reference in New Issue