Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
9
Task/Logical-operations/Slate/logical-operations.slate
Normal file
9
Task/Logical-operations/Slate/logical-operations.slate
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{#/\. #\/. #not} do: [ |:func|
|
||||
func arity = 1 ifTrue: [inform: 'True ' ; (func as: String) ; ' = ' ; (func sendTo: {True}) printString.
|
||||
inform: 'False ' ; (func as: String) ; ' = ' ; (func sendTo: {False}) printString.].
|
||||
|
||||
func arity = 2
|
||||
ifTrue: [{{True. True}. {True. False}. {False. True}. {False. False}} do:
|
||||
[ |:each| inform: each first printString ; (func as: String) ; each second printString ; ' = ' ; (func sendTo: each) printString]]
|
||||
|
||||
].
|
||||
Loading…
Add table
Add a link
Reference in a new issue