Data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 7387c8f97b
commit cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions

View file

@ -0,0 +1,11 @@
balance > 0
ifTrue: [Transcript cr; show: 'still sitting pretty!'.]
ifFalse: [Transcript cr; show: 'No money till payday!'.].
balance < 10 ifTrue:[ self goGetSomeMoney ].
balance > 1000 ifTrue:[ self beHappy ].
(balance < 10)
ifFalse:[ self gotoHappyHour ]
ifTrue:[ self noDrinksToday ].

View file

@ -0,0 +1 @@
abs := x > 0 ifTrue: [ x ] ifFalse: [ x negated ]

View file

@ -0,0 +1,5 @@
...
trueAction := [ ... do something ].
falseAction := [ ... do something else ...].
...
abs := x > 0 ifTrue:trueAction ifFalse:falseAction. "3)"

View file

@ -0,0 +1,9 @@
|x|
x := 1.
value :=
x caseOf: {
[1]->['one'].
[2]->['two'].
[3]->['three']
}
otherwise:['none of them'].