There are two unrelated format-to-string functions.
There are two unrelated format-to-string functions. | |
Process a format string and return the result as another string. | |
Process a simple format string and return the result as another string. |
Process a format string and return the result as another string. This function effectively calls format and returns the result as a string.
sealed
| control-string | An instance of <string>. |
| #rest args | Instances of <object>. The objects to substitute for the format fields in control-string. |
| result | An instance of <string>. |
Process a simple format string and return the result as another string. This is a more limited version of format exported by Module format. It supports the following format directives (see Format Directives):
| %d | As format. |
| %b | As format. |
| %o | As format. |
| %x | As format. |
| %c | As format. |
| %s | Formats its argument as a simple string if possible. Otherwise, as %=. |
| %= | Formats its argument in a form useful for developers. |
| %% | As format. |
These format directives cannot include flags, precision, or width specifiers.
| arg | An instance of <string>. |
| #rest more | Instances of <object>. |
| val | An instance of <string>. |