diff --git a/nt/primitives/bootstrap/maybe.nix b/nt/primitives/bootstrap/maybe.nix index 9016985..08b49b9 100644 --- a/nt/primitives/bootstrap/maybe.nix +++ b/nt/primitives/bootstrap/maybe.nix @@ -64,8 +64,8 @@ in rec { in assert enfIsMaybe value "mapMaybe"; value; - mapSome = f: mapMaybe f id; - mapNone = mapMaybe id; + mapSome = f: mapMaybe f (_: None); + mapNone = mapMaybe (x: Some x); # Utility Functions boolToMaybe = x: