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

types: define Fn type constructor #266

Merged
merged 1 commit into from
Apr 8, 2019
Merged

Conversation

davidchambers
Copy link
Member

No description provided.

(curry2 (Z.map));

eq (map (Math.sqrt) (Nothing)) (Nothing);
eq (map (Math.sqrt) (Just (9))) (Just (3));

eq (map (Math.sqrt) (Math.sqrt) (625)) (5);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The expression above type-checks because this pull request adds Fn ??? ??? to the default environment.

@davidchambers davidchambers merged commit 636c58b into master Apr 8, 2019
@davidchambers davidchambers deleted the davidchambers/fn branch April 8, 2019 21:48
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.

1 participant