# package:lens

An infix alias for review.
unto f # x ≡ f x
l # x ≡ x ^. re l
This is commonly used when using a Prism as a smart constructor.
>>> _Left # 4
Left 4
But it can be used for any Prism
>>> base 16 # 123
"7b"
(#) :: Iso'      s a -> a -> s
(#) :: Prism'    s a -> a -> s
(#) :: Review    s a -> a -> s
(#) :: Equality' s a -> a -> s
A version of (%%=) that works on ALens.
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 version of (<%=) that works on ALens.
A version of (<%~) that works on ALens.
>>> ("hello","world") & _2 <#%~ length
(5,("hello",5))
A version of (<.=) that works on ALens.
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"