fix mapSome/mapNone leave monadic context

This commit is contained in:
Emile Clark-Boman 2026-01-27 12:58:55 +10:00
parent 8a7998712d
commit 9e808c846e

View file

@ -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: