From 99c32737fe07bf7dc6094a1326be418ffd00e36f Mon Sep 17 00:00:00 2001 From: Nic Gaffney Date: Tue, 28 Oct 2025 20:02:47 -0500 Subject: filter implemented --- src/map.zig | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/map.zig') 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, -- cgit v1.2.3