Attributes
attr "k"
Section titled “attr "k"”Focus on key k. right when present; left s when missing.
(bend.attr "x").get { x = 1; } # right 1(bend.attr "x").get { } # left { }attrOr "k" default
Section titled “attrOr "k" default”Focus on key k with fallback. Always right.
(bend.attrOr "port" 8080).get { } # right 8080(bend.attrOr "port" 8080).get { port = 3; } # right 3path [keys]
Section titled “path [keys]”Chain of attr for nested access.
(bend.path ["a" "b"]).get { a = { b = 42; }; } # right 42eachValue lens
Section titled “eachValue lens”Apply lens to every value in an attrset.
mapKey f
Section titled “mapKey f”Rename attrset keys with function f.