def Http.head_tail.go

bend-kube-runtime@0.2.0.0 · src/http.bend:254

import bend-kube-runtime@0.2.0.0/src/http.bend as Http
import Base

254def Http.head_tail.go(+tail: U32, cr: Bool, lf: Bool, even: Bool) -> U32:
255  match cr lf even:
256    case True{} _ True{}:
257      (tail + 1 : U32)
258    case True{} _ False{}:
259      1
260    case False{} True{} False{}:
261      (tail + 1 : U32)
262    case _ _ _:
263      0

Uses (3)

Used by (1)