Skip to content

Instantly share code, notes, and snippets.

@adrianparvino
Created October 4, 2018 07:53
rec {
foo = xs: p: let
sorted = builtins.sort (x: y: x.startMin < y.startMin) xs;
in map ({fst, snd}: p fst snd) (super.lib.zipLists sorted (builtins.tail sorted));
verifyTime = times: foo times (x: y: x.startMin + x.lenMin <= y.startMin);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment