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:
Profpatsch 2021-11-13 02:18:27 +01:00
parent d08fbd79c7
commit e2fbc10ebd

View file

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