# Command: length

NEST HelpDesk | Command Index | NEST Quick Reference

Name:

    length - counts elements of a container object

Synopsis:

    proc/literal/array/string/dict length -> int

Examples:

      (Hello world!)	 length --> 12
      {(Hello world!) ==} length --> 2

Description:

      length counts type-dependent elements, e.g. characters of a string,
      entries of a dictonary, number of command of a procedure.

      Alternatives: Functions length_p, length_lp, length_a, length_s,
      length_d (documented:SeeAlso)

Parameters:

      One of the types proc, literal, array, string, dict
      Returns integer with number of elements.

Bugs:

Author:

    Gewaltig, Diesmann

FirstVersion:

    ??

SeeAlso:

- length_p
- length_lp
- length_a
- length_s
- length_d
- capacity
- size

Source:

    /opt/conda/conda-bld/nest_1510213973486/work/nest-2.14.0/lib/sli/sli-init.sli

NEST HelpDesk | Command Index | NEST Quick Reference

© 2004 The NEST Initiative