Skip to content
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

Merged
merged 6 commits into from
Oct 30, 2023
Merged

Non empty #4

merged 6 commits into from
Oct 30, 2023

Conversation

anttih
Copy link

@anttih anttih commented Oct 29, 2023

Implement foreign definitions for Data.Array.NonEmpty.

Remove UndefinedOr test util module so that we don't get complaints about foreign definitions missing.

@anttih anttih requested a review from f-f October 29, 2023 16:01
(lambda (apply map f)

(define kons (lambda (x) (lambda (ys) (cons x ys))))
(define singleton (lambda (x) (cons x '())))

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

Copy link
Author

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

@anttih anttih requested a review from postsolar October 30, 2023 09:26
src/Data/Array/NonEmpty/Internal.ss Outdated Show resolved Hide resolved
@anttih anttih merged commit b1b5a6e into v7.2.1-scm Oct 30, 2023
1 check passed
@f-f f-f deleted the non-empty branch October 30, 2023 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants