Category:Fmt

From Rosetta Code
Revision as of 16:17, 23 May 2020 by PureFox (talk | contribs) (Amended following transfer of Str class to a new module.)

fmt is a module which adds basic formatting capabilities to the Wren programming language. It consists of static methods organized into 2 classes: Conv and Fmt. As it is expected they will be mostly used within interpolated strings, most methods in the Fmt class have very short names reminiscent of the printf verb names in C-family languages.

It is the first in a series of modules (listed on the language's [main page]) designed to assist with writing Rosetta Code tasks so the same code does not have to be written or copy/pasted time and time again thereby bloating a task's script code unnecessarily.

To use it all you need to do is to copy the source code (in the [talk page]) to a text file called fmt.wren and place this in the same directory as the importing script so the command line interpreter can find it.

This category currently contains no pages or media.