def take

bend-lint-api@0.2.0.0 · shared/strings.bend:10

import bend-lint-api@0.2.0.0/shared/strings.bend as Strings
import Base

10# The first `n` characters of `s`. Base's String.take is not tail-recursive, so long text would overflow the stack.
11def take(s: String, n: Nat) -> String:
12  take.go(n, s, "")

Uses (3)

Used by (4)