mirror of
https://github.com/tweag/nickel.git
synced 2024-09-20 08:05:15 +03:00
Fix numeric benchmarks
This commit is contained in:
parent
66a1b134ae
commit
ea21879879
@ -3,7 +3,7 @@
|
||||
run = fun n =>
|
||||
let numbers = lists.generate builtins.id n in
|
||||
lists.foldl (fun acc x => acc + x) 0 numbers
|
||||
}
|
||||
},
|
||||
|
||||
product = {
|
||||
run = fun n =>
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
let map2 = fun f l1 l2 =>
|
||||
if l == [] || l2 == [] then
|
||||
map2 = fun f l1 l2 =>
|
||||
if l1 == [] || l2 == [] then
|
||||
[]
|
||||
else
|
||||
[f (lists.head l1) (lists.head l2)]
|
||||
|
Loading…
Reference in New Issue
Block a user