From Rosetta Code
This is an example of a library. You may see a list of other libraries used on Rosetta Code at Category:Solutions by Library.

Wren-fmt is a module which adds basic formatting capabilities to the Wren programming language. It consists of static methods organized into 3 classes: Conv, Fmt and Name.

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. However, the Fmt class also has convenience methods which mimic printf style functions thereby avoiding the need to use the basic formatting methods directly in nearly all cases.

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.

Pages in category "Wren-fmt"

The following 200 pages are in this category, out of 669 total.

(previous page) (next page)
(previous page) (next page)