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

7 lines
172 B
Text
Raw Permalink Normal View History

2013-04-10 21:29:02 -07:00
def logicalOperations(a :boolean, b :boolean) {
return ["and" => a.and(b),
"or" => a.or(b),
"not" => a.not(),
"xor" => a.xor(b)]
}