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

6 lines
172 B
Text

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