dimgigov
eac78f28c1
feat(stdlib): generic Iter_Map/Filter/Fold with func monomorphization
Add Iter_Map<T,U>, Filter, Fold, Any, All, ForEach over fat function
pointers; keep Iter_MapInt and friends as thin aliases.
Compiler fixes required for non-int returns and capturing closures:
- bootstrap: resolve fat-func call return type under mono typeSubst
- bootstrap: type-check args of Foo<T>(...) so closures capture correctly
- selfhost: substitute type params inside tekFunc (BuxFn_U_T → concrete)
- selfhost: emit cstr fat typedefs with #ifndef redefinition guards
Example: examples/iter_generic.bux (int↔String map, fold, closures).
Selfhost-loop remains binary-identical.
2026-07-18 01:07:41 +03:00
..
2026-06-08 18:43:26 +03:00
2026-07-15 16:00:21 +03:00
2026-06-10 13:46:06 +03:00
2026-06-07 22:15:00 +03:00
2026-06-10 13:37:55 +03:00
2026-06-08 12:26:24 +03:00
2026-06-06 04:53:39 +03:00
2026-06-06 04:53:39 +03:00
2026-07-18 01:07:41 +03:00
2026-06-09 15:56:16 +03:00
2026-07-15 16:00:21 +03:00
2026-06-06 04:53:39 +03:00
2026-06-06 04:53:39 +03:00
2026-06-07 18:05:04 +03:00
2026-07-15 16:00:21 +03:00
2026-07-15 16:00:21 +03:00
2026-06-06 04:53:39 +03:00
2026-06-06 04:53:39 +03:00
2026-07-15 16:00:21 +03:00
2026-07-15 16:00:21 +03:00
2026-06-11 01:28:59 +03:00
2026-07-15 16:00:21 +03:00
2026-06-06 04:53:39 +03:00
2026-06-10 19:45:24 +03:00
2026-07-15 16:00:21 +03:00
2026-06-06 04:53:39 +03:00