DEV Community

Discussion on: For Loop in different programming languages

Collapse
 
inessosa95 profile image
Inés Sosa • Edited

Here's in Smalltalk:

'Hello' do: [:each | Transcript show: each ]

this works for collections, strings, and objects all the same :D

Collapse
 
rattanakchea profile image
Rattanak Chea • Edited

Awesome. One size fits all. :-)

Collapse
 
inessosa95 profile image
Inés Sosa

The wonders of dynamically typed languages 😊