Explorer

core.option-string-same

description
Whether both are none, or both are some with the same string
type
Fn(a: Union{#none, #some(String)}, b: Union{#none, #some(String)}) -> Boolean
expression
fn(a$0, b$1) =>
  match $0 {
    #none(_) =>
      match $1 {
        #none(_) =>
          true,
        #some(sb$3) =>
          false
      },
    #some(sa$2) =>
      match $1 {
        #none(_) =>
          false,
        #some(sb$4) =>
          @core.equal(left: $2, right: $4)
      }
  }
visibility
public
core.option-string-same (project definy, branch auto-release, snapshot oiQgPqhJm-TbM4kexXeRHBaJB_tS7gwBSewII64P-44)
id: rFf5Q4vX4LiPjXPDNA1JXFWg_eNGAtDs1wgOZQFY0wk
content hash: AtlohLIPRpjUHbDWDZrQS0jzaZcxdn1gxLbyvC2Ly_8