6 lines
49 B
Prolog
6 lines
49 B
Prolog
|
|
| ?- length(["apple", "orange"], X).
|
||
|
|
|
||
|
|
X = 2
|
||
|
|
|
||
|
|
yes
|