Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.
{ depot, lib, ... }:
let
inherit (lib)
id
;
# Simple function composition,
# application is right to left.
rl = f1: f2:
(x: f1 (f2 x));
# Compose a list of functions,
rls = fs:
builtins.foldl' (fOut: f: lr f fOut) id fs;
# application is left to right.
lr = f1: f2:
(x: f2 (f1 x));
# application is left to right
lrs = x: fs:
builtins.foldl' (v: f: f v) x fs;
in
{
fix
flip
const
inherit
rl
rls
lr
lrs
}