mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-22 17:03:31 +02:00
docs: remove unused oneOfRecursive
This commit is contained in:
parent
4697b96a01
commit
a5152c2f8e
1 changed files with 0 additions and 12 deletions
|
@ -15,18 +15,6 @@ let
|
||||||
};
|
};
|
||||||
|
|
||||||
eitherRecursive = t1: t2: (final.types.either t1 t2) // { getSubOptions = _: { }; };
|
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';
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue