List.drop: def of Base
Import: import Base
Lines 1019-1026 of Base/base.bend: https://jend.leeeet.dev/read.txt?path=Base/base.bend&start_line=1019&end_line=1026
import Base
def List.drop(a, -A: Kind(a), xs: List, n: Nat) -> List:
match xs n:
case Nil{} _:
Nil{}
case h <> t 0n:
h <> t
case h <> t 1n+p:
List.drop(a, A, t, p)
Uses (2):
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat