RosettaCodeData/Task/Logical-operations/E/logical-operations-1.e

7 lines
159 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
def logicalOperations(a :boolean, b :boolean) {
return ["and" => a & b,
"or" => a | b,
"not" => !a,
"xor" => a ^ b]
}