# package:diagrams-lib
Postfix function application, for conveniently applying attributes.
Unlike ($), (#) has a high precedence (8), so d
# foo # bar can be combined with other things using operators
like (|||) or (<>) without needing
parentheses.
A version of (
%%~) that works on
ALens.
>>> ("hello","world") & _2 #%%~ \x -> (length x, x ++ "!")
(5,("hello","world!"))
A version of (
%=) that works on
ALens.
A version of (
%~) that works on
ALens.
>>> ("hello","world") & _2 #%~ length
("hello",5)
A version of (
.=) that works on
ALens.
A version of (
.~) that works on
ALens.
>>> ("hello","there") & _2 #~ "world"
("hello","world")
A replacement for lenses'
# operator.
A version of (
<%~) that works on
ALens.
>>> ("hello","world") & _2 <#%~ length
(5,("hello",5))
A version of (
<.~) that works on
ALens.
>>> ("hello","there") & _2 <#~ "world"
("world",("hello","world"))
A version of (
^.) that works on
ALens.
>>> ("hello","world")^#_2
"world"