def drop
import ezx@1.11.0.0/src/share/args.bend as Argsimport Base
78# `n` words dropped. What remains when the list runs out first is nothing.
79def drop(xs: List<&2, String>, count: Nat) -> List<&2, String>:
80 match xs count:
81 case Nil{} _m:
82 Nil{}
83 case Con{+h, +t} 0n:
84 h <> t
85 case Con{_h, t} 1n+p:
86 drop(t, p)