kowainik / slist

♾️ Sized list
https://kowainik.github.io/projects/slist
Mozilla Public License 2.0
46 stars 6 forks source link

Issue #9: implements fromRange function #17

Closed zfnmxt closed 5 years ago

zfnmxt commented 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).

zfnmxt commented 5 years ago

Hopefully fixed now.

zfnmxt commented 5 years ago

Added the example, merged your changes; thanks for your help with the PR.