Skip to content
This repository has been archived by the owner on Feb 13, 2023. It is now read-only.

Re-introduce Placeholder System #20

Open
harrysolovay opened this issue Nov 5, 2022 · 0 comments
Open

Re-introduce Placeholder System #20

harrysolovay opened this issue Nov 5, 2022 · 0 comments

Comments

@harrysolovay
Copy link
Contributor

Ideally, we'll be able to apply to any effect (and have it scoped to that subtree).

const n_ = Symbol();
const n = Z._<number>(n_);

const squared = Z.call(n, (n) => {
  return n * n;
});

const applied = squared.apply(n, 2);

const result = applied.run();
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant