diff options
| author | Nic Gaffney <gaffney_nic@protonmail.com> | 2025-10-28 20:02:47 -0500 |
|---|---|---|
| committer | Nic Gaffney <gaffney_nic@protonmail.com> | 2025-10-28 20:02:47 -0500 |
| commit | 99c32737fe07bf7dc6094a1326be418ffd00e36f (patch) | |
| tree | bc8549038f85586ef4b9724f51ab850193f36d68 /src/map.zig | |
| parent | 96e8c19ebdc7c168a1bd243ce1793b2df1480939 (diff) | |
| download | funcz-99c32737fe07bf7dc6094a1326be418ffd00e36f.tar.gz | |
filter implemented
Diffstat (limited to 'src/map.zig')
| -rw-r--r-- | src/map.zig | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/map.zig b/src/map.zig index b04366d..e0d713d 100644 --- a/src/map.zig +++ b/src/map.zig @@ -7,7 +7,6 @@ const typeVerify = @import("util.zig").typeVerify; /// Map a function onto a list of values, using a buffer /// Type signature: `(a -> b) -> [a] -> [b]` /// `func` is of type `a -> b`, where `items` is of type `[a]` and `buffer` is a pointer to a value of type `[b]`. -/// Haskell equivalent: `map func items` pub fn map( comptime func: anytype, items: []typeVerify(@TypeOf(func), .{ .@"fn" }).@"fn".params[0].type.?, @@ -28,7 +27,6 @@ pub fn map( /// Type signature: `(a -> b) -> [a] -> [b]` /// `func` is of type `a -> b`, where `items` is of type `[a]`. /// `map` will return a slice of type `[b]` -/// Haskell equivalent: `map func items` pub fn mapAlloc( allocator: std.mem.Allocator, func: anytype, |
