Documentation Prolog Predicate Reference builtin atom_length/2

atom_length/2

Length of an atom.

Description

atom_length( +atom, ?integer )

atom_length(Atom, Length) is true if and only if the number of characters in the name of Atom is equal to Length. If Length is not instantiated, atom_length will calculate the length of Atom's name.

Implementation