RosettaCodeData/Task/Logical-operations/E/logical-operations-1.e
2023-07-01 13:44:08 -04:00

6 lines
159 B
Text

def logicalOperations(a :boolean, b :boolean) {
return ["and" => a & b,
"or" => a | b,
"not" => !a,
"xor" => a ^ b]
}