(new!)
| aCollection aNumber |
aNumber := 0.
aCollection := #('one' 'two' 'three').
aCollection do: [ :element |
aNumber := aNumber + 1.
]
Transcript cr;
show: 'There are ', aNumber asInteger, ' of strings in your collection of strings.'.
It got even better when I equated map with this:
| aCollection anotherCollection |
aCollection := #('one' 'two' 'three').
anotherCollection := aCollection collect: [ :element |
element
].
Smalltalk is still a neat, powerful language (as is Perl).What else can I say about this? Only that performing is more enjoyable that listening. Here are the instruments I play, in decreasing order of skill:
This summer I'll be busy with gigs (I've already done more musicals and shows in the past month and a half than in the past eight years!). At work, one of the survey questions (How well do you like working at this place? Are you satisfied with working conditions? management? coworkers? etc.) was whether or not I felt all my "career goals" could be met working with this company. No way! (unless they're going to start a house orchestra or band sometime soon...)
...but not necessarily a lot about; I'm still learning.
Of course, I should also throw in a bit of shell programming as well...how could you use Linux without it?
(Which came first: parentheses or parenthetical remarks?)
Well, as of today (10/14/2003) I have assumed new powers. (I'm only recording that fact so I can find the node describing those powers again after I've forgotten what they are.)
perlmonks.org content © perlmonks.org and t'mo
prlmnks.org © 2006 edmund von der burg (eccles & toad)
v 0.03