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 compiled-tests, snapshot i6TqClmqVS9FK8rKOvJ43l6Tevx8pvYJ5-zaQqNwemc)
id: rFf5Q4vX4LiPjXPDNA1JXFWg_eNGAtDs1wgOZQFY0wk
content hash: AtlohLIPRpjUHbDWDZrQS0jzaZcxdn1gxLbyvC2Ly_8