Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix broken AtomBenchmarks #3546

Merged
merged 2 commits into from
Jun 23, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ class AtomFixtures extends DefaultInterpreterRunner {

val millionElementList = eval(
s"""|from Standard.Base.Data.List import Cons,Nil
|from Standard.Base.Data.Range import all
|
|main =
| res = (1.up_to $million).fold Nil (acc -> x -> Cons x acc)
| generator fn acc i end = if i == end then acc else @Tail_Call generator fn (fn acc i) i+1 end
| res = generator (acc -> x -> Cons x acc) Nil 1 $million
| res
""".stripMargin)

Expand Down