(format value) -> string
(format value integer) -> string
(format value integer integer) -> string
Format converts other values to strings.
Format requires one argument, a value to be formatted as a string, and two optional integer arguments. The first integer is the "breadth", and determines the limit of items per value displayed. ( This value is reset each recursion, so if you have 100 lists of 100 items each, you will have 1,000 values displayed, not 10,000 ). The second integer is the depth, and restricts how deeply the format will recurse -- this is useful for restricting deeply nested structures, like those that commonly occur with S-XML, and Clue databases.
Example:
>> (format (map-car (mosvm-syntax)) 1000) :: "(trap trace fail-on-error define-filter apply quasiquote quote begin return if and or forever until while unless when cond case guard export lambda define-record-type define-class)"