Skip to content

Instantly share code, notes, and snippets.

@adrianparvino
Created October 4, 2018 07:53
Show Gist options
  • Save adrianparvino/2177e08e93a052b28f80ae9848f3d8ea to your computer and use it in GitHub Desktop.
Save adrianparvino/2177e08e93a052b28f80ae9848f3d8ea to your computer and use it in GitHub Desktop.
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