7 lines
172 B
Text
7 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)]
|
||
|
|
}
|