lib/lists.nix: Remove uses of the tail function
nix lists are not like haskell lists, and tail is an O(n) operation.
This makes recursion using tail less efficient than recursion using
length + elemAt.
Signed-off-by: Shea Levy <shea@shealevy.com>
parent
18e9efe0
Please register or sign in to comment