Part.5 hd/lists:last

リストの操作の一番の基本。一番最初と一番最後。

rlang (BEAM) emulator version 5.6.5 [source] [64-bit] [smp:2] [async-threads:128] [kernel-poll:true]

Eshell V5.6.5  (abort with ^G)
1> A = [1,2,3,4].
[1,2,3,4]
2> hd(A).
1
3> lists:last(A).
4