peon/src/peon/stdlib/builtins/logical.pn

18 lines
267 B
Plaintext

# Logical operators
import values;
operator `and`*(a, b: bool): bool {
#pragma[magic: "LogicalAnd", pure]
}
operator `or`*(a, b: bool): bool {
#pragma[magic: "LogicalOr", pure]
}
operator `not`*(a: bool): bool {
#pragma[magic: "LogicalNot", pure]
}