def token_len.q

cswap-bend-cli@0.1.0.0 · fmt/ylex.bend:225

import cswap-bend-cli@0.1.0.0/fmt/ylex.bend as Ylex
import Base

225def token_len.q(+s: String, +c: U32) -> Maybe<&2, Nat>:
226  tl.pick(U32.is_eq(c, 34), U32.is_eq(c, 39), tl.plus(dq.end(String.drop(s, 1n), 0n, False{})), tl.plus(sq.end(String.drop(s, 1n), 0n, False{})))

Uses (11)

Used by (1)