RosettaCodeData/Task/Logical-operations/Jq/logical-operations-1.jq
2017-09-25 22:28:19 +02:00

5 lines
191 B
Text

def logic(a; b):
"\(a) and \(b) => \(a and b)",
"\(a) or \(b) => \(a or b)",
"\(a) | not => \(a | not)",
"if \(a) then true else false end => \(if a then true else false end)" ;