Closed zfnmxt closed 5 years ago
Closes #9
I wasn't sure about putting O(1) as the runtime: when fully evaluated, clearly fromRange is O(n). But just running fromRange without further evaluation should yield a constant-time thunk (I hope).
O(1)
fromRange
O(n)
Hopefully fixed now.
Added the example, merged your changes; thanks for your help with the PR.
Closes #9
I wasn't sure about putting
O(1)
as the runtime: when fully evaluated, clearlyfromRange
isO(n)
. But just runningfromRange
without further evaluation should yield a constant-time thunk (I hope).