XLISP flatsize

Nyquist / XLISP 2.0 - Contents | Tutorials | Examples | Reference

# flatsize

Type: | - | function (subr)
Source: | - | xlfio.c, xlprin.c

## Syntax

(flatsize expr)
  expr - an expression
  returns - the length

## Description

The 'flatsize' function determines the character length that would be printed if the 'expr' were printed using prin1. This means that the 'expr' would be printed without a new-line. If 'expr' is a string, it would be printed with quotes around the string. The print character length is returned as the result.

## Examples

    (flatsize 1234)          ; returns 4
    (flatsize '(a b c))      ; returns 7
    (flatsize "abcd")        ; returns 6
    (flatsize 'mybigsymbol)  ; returns 11

See the flatsize function in the XLISP 2.0 manual.

Back to Top

Nyquist / XLISP 2.0 - Contents | Tutorials | Examples | Reference