PreviousUpNext

11.3.2  Printf Sprintf Fprintf Functions

The Mythryl printf, sprintf, and fprintf are curried, so argument follow without commas. Argument expressions must be parenthesized. The printf function prints to stdout, the sprintf constructs and returns a string, and the fprintf function writes to the specified stream; they are otherwise identical.

Example:

eval:  printf "%d\n" 12;
12

eval:  apply (printf "%d\n") [ 12, 13, 14 ];
12
13
14

Comments and suggestions to: bugs@mythryl.org

PreviousUpNext