Skip to content

Commit

Permalink
lazy eval addition
Browse files Browse the repository at this point in the history
  • Loading branch information
ajnadel committed Mar 16, 2016
1 parent 627a3da commit 47f7caf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lazy_eval.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@

infiniteList = [1,2..]
infiniteList !! 82 --> 82
length infiniteList --> will hang
length infiniteList --> will hang indefinitely

--QED

0 comments on commit 47f7caf

Please sign in to comment.