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

15 lines
260 B
Text

Logical := function(a, b)
return [ a or b, a and b, not a ];
end;
Logical(true, true);
# [ true, true, false ]
Logical(true, false);
# [ true, false, false ]
Logical(false, true);
# [ true, false, true ]
Logical(false, false);
# [ false, false, true ]