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

7 lines
172 B
Text
Raw Permalink Normal View History

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