def drop

bend-osdev-bytes@0.1.1.0 · bytes.bend:71

import bend-osdev-bytes@0.1.1.0/bytes.bend as Bytes
import Base

71# all but the first n bytes
72def drop(n: Nat, xs: List<&2, U32>) -> List<&2, U32>:
73  match n:
74    case 0n:
75      xs
76    case 1n+p:
77      match xs:
78        case Nil{}:
79          Nil{}
80        case Con{h, t}:
81          drop(p, t)

Uses (3)

Used by (46)