closures library for C3
c3
  • Python 68.4%
  • Nix 31.6%
Find a file
2025-09-03 11:45:18 +12:00
example closure::new now takes a reference implicitly instead of requiring it explicitly 2025-08-29 10:16:07 +12:00
.gitignore WIP 8 2025-08-27 17:14:53 +12:00
closure.c3 fix zero initialisation bug 2025-09-03 11:45:18 +12:00
flake.lock stdlib vm::alloc now works on linux 2025-08-31 12:01:56 +12:00
flake.nix initial commit 2025-08-22 22:57:00 +12:00
generated.c3 increase max params to 20 2025-08-28 13:50:52 +12:00
generator.py WIP fix structs 2025-08-28 23:30:21 +12:00
LICENSE initial commit 2025-08-22 22:57:00 +12:00
manifest.json initial commit 2025-08-22 22:57:00 +12:00
README.md update readme as structs no longer break things 2025-08-29 11:23:22 +12:00

Explicitly capturing Closures in C3

See example/main.c3 for an example of usage and the doc comments in closure.c3 for a more detailed explanation of usage.

There is a limit of 20 total parameters that can be increased by modifying the python file generator.py