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

Pack Closure / Unpack Closure primitives #1198

Open
andrew-johnson-4 opened this issue Jan 29, 2025 · 2 comments
Open

Pack Closure / Unpack Closure primitives #1198

andrew-johnson-4 opened this issue Jan 29, 2025 · 2 comments
Assignees

Comments

@andrew-johnson-4
Copy link
Owner

These would be used to implement lexical closures for higher order functions.

@andrew-johnson-4
Copy link
Owner Author

andrew-johnson-4 commented Jan 29, 2025

let clj = pack-closure( v1, v2, v3 );

unpack-closure(clj);

@andrew-johnson-4
Copy link
Owner Author

unpack closure work with field names.

So Closure12345 { v1: T, v2: TT, v3: TTT } will unpack into variables v1, v2, v3

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

No branches or pull requests

1 participant