def reason.in

emerging-ezhttp@0.22.0.0 · src/http.bend:987

import emerging-ezhttp@0.22.0.0/src/http.bend as Http
import Base

987# the phrase a list gives a code, "" when it gives none
988def reason.in(ps: List<&2, Phrase>, +code: U32) -> String:
989  match ps:
990    case []:
991      ""
992    case P{c, text} <> t:
993      reason.pick(text, U32.is_eq(code, c), _u => reason.in(t, code))

Uses (6)

Used by (2)