Skip to content

Unexpected value in Lazy Evaluation exercise  #298

@dicody

Description

@dicody

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions