docs: remove unused oneOfRecursive

This commit is contained in:
Matt Sturgeon 2024-09-12 13:00:03 +01:00
parent 4697b96a01
commit a5152c2f8e
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299

View file

@ -15,18 +15,6 @@ let
};
eitherRecursive = t1: t2: (final.types.either t1 t2) // { getSubOptions = _: { }; };
oneOfRecursive =
ts:
let
head' =
if ts == [ ] then
throw "types.oneOfRecursive needs to get at least one type in its argument"
else
builtins.head ts;
tail' = builtins.tail ts;
in
builtins.foldl' final.types.eitherRecursive head' tail';
};
}
);