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-05-31 02:01:28 +03:00
2026-07-15 16:00:21 +03:00
2026-06-01 02:57:46 +03:00
2026-06-07 18:09:40 +03:00
2026-06-11 09:21:06 +03:00
2026-07-18 00:58:44 +03:00
2026-06-11 09:21:06 +03:00
2026-05-31 23:48:45 +03:00
2026-05-31 02:01:28 +03:00
2026-05-31 13:06:29 +03:00
2026-06-05 21:05:00 +03:00
2026-06-05 21:05:00 +03:00
2026-07-15 16:00:21 +03:00
2026-05-31 13:06:29 +03:00
2026-05-31 13:06:29 +03:00
2026-05-31 11:57:52 +03:00
2026-05-31 02:01:28 +03:00
2026-05-31 02:01:28 +03:00
2026-07-18 01:07:41 +03:00
2026-07-15 16:07:47 +03:00
2026-06-05 23:39:41 +03:00
2026-06-05 21:26:51 +03:00
2026-06-05 21:34:37 +03:00
2026-07-15 16:00:21 +03:00
2026-05-31 13:06:29 +03:00
2026-07-18 00:58:44 +03:00
2026-05-31 02:01:28 +03:00
2026-07-15 16:00:21 +03:00
2026-06-05 21:05:00 +03:00
2026-05-31 23:48:45 +03:00
2026-07-18 00:58:44 +03:00
2026-06-05 21:05:00 +03:00
2026-05-31 10:15:44 +03:00
2026-07-15 16:00:21 +03:00
2026-07-15 16:00:21 +03:00
2026-07-18 00:58:44 +03:00
2026-05-31 13:06:29 +03:00
2026-05-31 10:15:44 +03:00
2026-05-31 02:01:28 +03:00
2026-06-11 09:21:06 +03:00
2026-06-05 20:32:10 +03:00
2026-06-05 20:32:10 +03:00
2026-06-05 23:06:53 +03:00
2026-05-31 23:48:45 +03:00
2026-05-31 10:15:44 +03:00
2026-07-15 16:00:21 +03:00