def take

bend-collections@1.0.0.0 · src/crypto/secp256k1/limbs.bend:78

import bend-collections@1.0.0.0/src/crypto/secp256k1/limbs.bend as Limbs
import Base

78def take(n: Nat, xs: List<&2, Nat>) -> List<&2, Nat>:
79  match n xs:
80    case 0n _: Nil{}
81    case 1n+k Nil{}: Nil{}
82    case 1n+k x <> t: x <> take(k, t)

Uses (2)

Used by (4)