RosettaCodeData/Task/Logical-operations/E/logical-operations-1.e
Ingy döt Net db842d013d A-M baby
2013-04-10 21:29:02 -07:00

6 lines
159 B
Text

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