View this PageEdit this PageAttachments to this PageHistory of this PageHomeRecent ChangesSearch the SwikiHelp Guide
Hotspots: Admin Pages | Turn-in Site |
Current Links: Cases Final Project Summer 2007

Fall2002 Midterm Review: String to Hex

stringToHex: aString

1 items 1
items := aString findTokens: ' '.
items do: [each:|
each := each asNumber.
each := each hex.
].

^items.

How does
^ (aString findTokens: ' ') collect: [ :token | token asInteger hex ]
sound?

Link to this Page