Skip to content

Zig

Zig type hacker and memory management

You can map and fold in Zig but lack of closures makes it unergonomic. Here's a completely silly example that shows Zig type hackery as well as memory management. const std = @import("std"); const mem = std.mem; const testing = std.testing; const Allocator = mem.Allocator; pub