. , , , , . : , , .
([]), . , . . . , , .
, : ; . , . , , , . . , , , , . .
(|):
[Head | Tail].
Head , Tail ( ). , , , X S [X | S].
(*) .
6: , .
domains
list1=integer*
list2=char*
list3=string*
list4=real*
list5=symbol*
personal_library = book (title, author, publisher, year)
list6= personal_library*
list7=list1*
list8=list5*
, personal_library, .
7: .
[1, 2, 3, 4, 5] | 1 | [2, 3, 4, 5] |
[6.9, 4.3] | 6.9 | [4.3] |
[cat, dog, horse] | Cat | [dog, horse] |
[S, K, Y] | S | [K, Y] |
[PIG] | PIG | [] |
[] |