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

Unexpected value in Lazy Evaluation exercise #298

Open
dicody opened this issue Oct 25, 2022 · 0 comments
Open

Unexpected value in Lazy Evaluation exercise #298

dicody opened this issue Oct 25, 2022 · 0 comments

Comments

@dicody
Copy link

dicody commented Oct 25, 2022

Dear Team,

One of the exercises in Lazy Evaluation section returns odd result:
image

Same function in tests:

class LazyEvaluationSpec extends RefSpec with Checkers {

  def `check lazy list range`(): Unit =
    check(Test.testSuccess(LazyEvaluation.llRangeExercise _, 3 :: HNil)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant