def equal

bendvy-ecs-core@0.1.0.3 · decode_data.bend:109

import bendvy-ecs-core@0.1.0.3/decode_data.bend as DecodeData
import Base
import bendvy-ecs-core@0.1.0.3/decode_utf16.bend as Utf16

109def equal(+a:Raw,+b:Raw) -> Bool:
110  match a b:
111    case Null{} Null{}: True{}
112    case BendvyText{a} BendvyText{b}: String.eq(a,b)
113    case Utf16Text{a} Utf16Text{b}: Utf16.checked(a,b)
114    case Utf16Text{a} BendvyText{b}: Utf16.checked(a,Utf16.text(b))
115    case BendvyText{a} Utf16Text{b}: Utf16.checked(Utf16.text(a),b)
116    case Boolean{a} Boolean{b}: same_bool(a,b)
117    case _ _: same_numeric(numeric(a),numeric(b))

Uses (8)

Used by (2)