ramda-adjunct icon indicating copy to clipboard operation
ramda-adjunct copied to clipboard

xnor

Open Undistraction opened this issue 7 years ago • 1 comments

Is your feature request related to a problem? Please describe.

Complement of nor

Describe the solution you'd like

xnor(true, true); //=> true
xnor(true, false); //=> false
xnor(false, true); //=> false
xnor(false, false); //=> true

Describe alternatives you've considered

--

Additional context

Complement of nor. Is true only if both values are the same.

  • T T = T
  • T F = F
  • F T = F
  • F F = T

See: #234

Undistraction avatar Jan 17 '18 12:01 Undistraction

It is actually the complement of xor(from Ramda), right?

FelipeParreira avatar Aug 05 '20 17:08 FelipeParreira