def has
import bend-kit-jwt@0.11.0.1/jwt.bend as Jwtimport Base
238def has(l: List<&2, Field>, +k: String) -> Bool:
239 match l:
240 case Nil{}:
241 False{}
242 case Field{n, x} <> t:
243 Bool.or(String.eq(n, k), has(t, k))
import bend-kit-jwt@0.11.0.1/jwt.bend as Jwtimport Base
238def has(l: List<&2, Field>, +k: String) -> Bool:
239 match l:
240 case Nil{}:
241 False{}
242 case Field{n, x} <> t:
243 Bool.or(String.eq(n, k), has(t, k))