Skip to content
Commit a4c33347 authored by Shea Levy's avatar Shea Levy
Browse files

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: default avatarShea Levy <shea@shealevy.com>
parent 18e9efe0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment