links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
String method format:
Last updated at 3:00 pm UTC on 6 March 2017
A message people used to C-style languages will find #format: useful.

This provides printf() like functionality.


'I want {1} apples' format: #(3).
=> 'I want 3 apples'

The arguments must be supplied as a Collection, Here I supplied an array.

See also
String method expandMacrosWith:
STT - Smalltalk Templates