lib.types: inline tail binding

This commit is contained in:
Eman Resu 2026-05-07 18:47:19 -04:00
commit 9b693534b4

View file

@ -1585,9 +1585,8 @@ rec {
let
head' =
if ts == [ ] then throw "types.oneOf needs to get at least one type in its argument" else head ts;
tail' = tail ts;
in
foldl' either head' tail';
foldl' either head' (tail ts);
# Either value of type `coercedType` or `finalType`, the former is
# converted to `finalType` using `coerceFunc`.