get_id(object)

Package :
lang
Type :
procedure

Return the id of the object, based on the string returned by image(). For types that do not produce such a value, this method will have undefined results.

Example :
x := [1, 2 ,3]
write(image(x))
write(get_id(x))

Output:
list_5(3)
5
Source