1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
| 1> lists:keydelete(jim, 1,
1> [
1> {mike, 32, programmer}, {jim, 22, engineer}, {tim, 40, scientist},
1> {bob, 36, officer}, {lod, 22, dentist}, {iwan, 27, evangelist},
1> {simon, 36, typist}, {dag, 34, student}, {jack, 21, programmer},
1> {john, 21, engineer}, {mike, 27, scientist}, {jim, 24, officer}
1> ]).
[{mike,32,programmer},
{tim,40,scientist},
{bob,36,officer},
{lod,22,dentist},
{iwan,27,evangelist},
{simon,36,typist},
{dag,34,student},
{jack,21,programmer},
{john,21,engineer},
{mike,27,scientist},
{jim,24,officer}]
2> lists:keydelete(madscientist, 3,
2> [
2> {mike, 32, programmer}, {jim, 22, engineer}, {tim, 40, scientist},
2> {bob, 36, officer}, {lod, 22, dentist}, {iwan, 27, evangelist},
2> {simon, 36, typist}, {dag, 34, student}, {jack, 21, programmer},
2> {john, 21, engineer}, {mike, 27, scientist}, {jim, 24, officer}
2> ]).
[{mike,32,programmer},
{jim,22,engineer},
{tim,40,scientist},
{bob,36,officer},
{lod,22,dentist},
{iwan,27,evangelist},
{simon,36,typist},
{dag,34,student},
{jack,21,programmer},
{john,21,engineer},
{mike,27,scientist},
{jim,24,officer}]
3> lists:keydelete(madscientist, 4,
3> [
3> {mike, 32, programmer}, {jim, 22, engineer}, {tim, 40, scientist},
3> {bob, 36, officer}, {lod, 22, dentist}, {iwan, 27, evangelist},
3> {john, 21, engineer}, {mike, 27, scientist}, {jim, 24, officer}
3> ]).
[{mike,32,programmer},
{jim,22,engineer},
{tim,40,scientist},
{bob,36,officer},
{lod,22,dentist},
{iwan,27,evangelist},
{john,21,engineer},
{mike,27,scientist},
{jim,24,officer}]
|