diff options
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, |
