def has_nul

bend-kit-llm@0.13.0.1 · sse.bend:82

import bend-kit-llm@0.13.0.1/sse.bend as Sse
import Base

82def has_nul(s: String) -> Bool:
83  match s:
84    case SNil{}:
85      False{}
86    case SCon{Chr{+c}, t}:
87      Bool.or(U32.is_zero(c), has_nul(t))

Uses (5)

Used by (1)