|Did you know ...||Search Documentation:|
|Pack xlibrary -- prolog/term_size.pl|
The following predicates are exported from this file while their implementation is defined in imported modules or non-module files loaded by this module.
?- A = a(1,2,3), term_size(A,S). S = 4. ?- A = a(1,2,3), term_size(a(A,A),S). S = 7. ?- term_size(a(a(1,2,3), a(1,2,3)), S). S = 11.
Note that small objects such as atoms and small integers have a size 0. Space is allocated for floats, large integers, strings and compound terms.