1
0
Fork 0
mirror of https://github.com/emacs-twist/org-babel.git synced 2024-12-15 17:50:48 +00:00
org-babel/nix/dropWhile.nix
2021-12-03 22:44:34 +09:00

11 lines
158 B
Nix

pred:
with builtins;
let
go = items:
if length items == 0
then [ ]
else if ! (pred (head items))
then items
else go (tail items);
in
go