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

curry api #140

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

curry api #140

wants to merge 2 commits into from

Conversation

dannypsnl
Copy link

resolve #131

resolve RedPRL#131

Signed-off-by: Lîm Tsú-thuàn <[email protected]>
src/ScopeSigs.ml Outdated Show resolved Hide resolved
@favonia
Copy link
Collaborator

favonia commented Jan 10, 2025

Perhaps the trie API should be updated as well...

Co-authored-by: favonia <[email protected]>
@dannypsnl dannypsnl requested a review from favonia January 10, 2025 10:58
@dannypsnl
Copy link
Author

Perhaps the trie API should be updated as well...

Do you mean replace ('data, 'tag) t with 'data 'tag t or just in some case, e.g.

val map : ?prefix:bwd_path -> (bwd_path -> 'data1 * 'tag1 -> 'data2 * 'tag2) -> ('data1, 'tag1) t -> ('data2, 'tag2) t

curry the API.

@favonia
Copy link
Collaborator

favonia commented Jan 11, 2025

@dannypsnl The second (currying the API in some cases). Is it even possible to replace ('data, 'tag) t with 'data 'tag t?

@dannypsnl
Copy link
Author

dannypsnl commented Jan 12, 2025

I have the question exactly because I don't know it's possible or not :). Ok, then I can try to modify some Trie

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.

🍛 Curry the API (more)
2 participants