Subject: [SWIPL] atom_length/2 behavior

From: Дмитрий С. Кузьмин <[email-masked]>
Date: Fri, 18 Jan 2002 13:25:13 +0300 (MSK)

?- atom_length(1,A).
A = 1
Yes
?- atom_length([],A).
A = 2
Yes
?- atom_length([-],A).
A = 1
Yes
?- atom_length([-,2],A).
A = 2
Yes

?- atom_length([-,2,3],A).
A = 3
Yes

?- atom([-,2,3]).
No

%% Question : WHY ?