alvatar / spheres

Spheres - A set of tools and libraries for practical Scheme. Multiplatform and Mobile.
MIT License
69 stars 10 forks source link

fixed unfold in list.scm #21

Closed nortiero closed 8 years ago

nortiero commented 8 years ago

Hello!

Minimal patch to unfold, still missing additional checks present in the reference.

These one-liners now work:

(unfold null-list? car cdr '(1 2 3 4 5) )                            
=> (1 2 3 4 5)

(unfold null-list? car cdr '(1 2 3 4 5) (lambda (x) 'this-is-the-end))  
=> (1 2 3 4 5 . this-is-the-end)
alvatar commented 8 years ago

Thank you @nortiero ! Merging.