dev/smalltalk/helloworld/somebasic.st

6 lines
374 B
Smalltalk

"Everything, including a literal, is an object, so this works:"
-199 abs displayNl "199"
'gst is cool' size displayNl "11"
( 'Slick' indexOf: $c ) displayNl "4"
'Nice Day Isn''t It?' asLowercase asSet asSortedCollection asString displayNl "' '?acdeinsty'"