Oct. 17, 2013
12:16 a.m.
There is a missing line that makes the below evaluate to true. Can you spot it? [ | pointClass setX setY squared | pointClass := [ | x y | setX := [ :aNumber | x := aNumber ]. setY := [ :aNumber | y := aNumber ]. squared := [ (x * x) + (y * y) ]. #end. ]. setX value: 3. setY value: 4. squared value. ] value = 25
Oct. 17, 2013
1:43 a.m.
Francisco Garau wrote:
There is a missing line to make the below example evaluate to true. Can you spot it?
[ | pointClass setX setY squared | pointClass := [ | x y | setX := [ :aNumber | x := aNumber ]. setY := [ :aNumber | y := aNumber ]. squared := [ (x * x) + (y * y) ]. #end. ]. setX value: 3. setY value: 4. squared value. ] value = 25
pointClass value cheers -ben
4670
Age (days ago)
4670
Last active (days ago)
1 comments
2 participants
participants (2)
-
btc@openinworld.com -
Francisco Garau