def marker

yaml-for-bend@0.1.1.0 · scan.bend:238

import yaml-for-bend@0.1.1.0/scan.bend as Scan
import Base

238# "---" or "..." (+c+ thrice) and then a blank, a break or the end.
239def marker(+s: String, +c: Char) -> Bool:
240  Bool.and(Bool.and(Char.is_eq(peek(s, 0n), c), Char.is_eq(peek(s, 1n), c)), Bool.and(Char.is_eq(peek(s, 2n), c), is_blankz(peek(s, 3n))))

Uses (7)

Used by (2)