def kind_eq
bend-schema-lib@0.4.1.0 · core.bend:504
import bend-schema-lib@0.4.1.0/core.bend as Core
import Base
504def kind_eq(a: JKind, b: JKind) -> Bool:
505 match a b:
506 case KNum{} KNum{}:
507 True{}
508 case KStr{} KStr{}:
509 True{}
510 case KBool{} KBool{}:
511 True{}
512 case KList{} KList{}:
513 True{}
514 case KObj{} KObj{}:
515 True{}
516 case KNull{} KNull{}:
517 True{}
518 case KAbsent{} KAbsent{}:
519 True{}
520 case KJson{} KJson{}:
521 True{}
522 case KOther{} KOther{}:
523 True{}
524 case _ _:
525 False{}