RosettaCodeData/Task/Logical-operations/Retro/logical-operations.retro
Ingy döt Net d066446780 langs a-z
2013-04-10 22:43:41 -07:00

6 lines
219 B
Text

: .bool ( f- ) [ "true" ] [ "false" ] if puts cr ;
: logic ( ab- )
"\na = " puts over .bool "b = " puts dup .bool
"\na and b = " puts 2dup and .bool
"\na or b = " puts over or .bool
"\nnot a = " puts not .bool ;