-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Non empty #4
Non empty #4
Conversation
src/Data/Array/NonEmpty/Internal.ss
Outdated
(lambda (apply map f) | ||
|
||
(define kons (lambda (x) (lambda (ys) (cons x ys)))) | ||
(define singleton (lambda (x) (cons x '()))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we could just use the built-in list
here instead of singleton
. Or (define singleton list)
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ha, I was wondering how can there be no built-in singleton
, forgetting about list
completely :D
Implement foreign definitions for
Data.Array.NonEmpty
.Remove
UndefinedOr
test util module so that we don't get complaints about foreign definitions missing.