feat(users/Profpatsch/lens): add _ as reverse function application
Change-Id: I0bcd997ea469ff55d2170027184fc5bd10b44e00 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3847 Reviewed-by: Profpatsch <mail@profpatsch.de> Tested-by: BuildkiteCI
This commit is contained in:
parent
d08fbd79c7
commit
e2fbc10ebd
1 changed files with 3 additions and 0 deletions
|
@ -6,6 +6,8 @@ let
|
|||
|
||||
comp = f: g: x: f (g x);
|
||||
|
||||
_ = v: f: f v;
|
||||
|
||||
# Profunctor (p :: Type -> Type -> Type)
|
||||
Profunctor = rec {
|
||||
# dimap :: (a -> b) -> (c -> d) -> p b c -> p a d
|
||||
|
@ -113,6 +115,7 @@ let
|
|||
in {
|
||||
inherit
|
||||
id
|
||||
_
|
||||
const
|
||||
comp
|
||||
Profunctor
|
||||
|
|
Loading…
Reference in a new issue