Go to the first, previous, next, last section, table of contents.


assoc

assoc(a,b)
:: 連想リストをつくる
return
List
a
List
b
List

下の例では A に動物の名前が, B に足の本数が入っている. assoc(A,B) で動物と足の本数をペアにしたリストを生成する.

[1192]  A=["dog","cat","snake"];
[dog,cat,snake]
[1193] B=[4,4,0];
[4,4,0]
[1194] assoc(A,B);
[[dog,4],[cat,4],[snake,0]]
参照
@xref{cons}, @xref{append}

ChangeLog


Go to the first, previous, next, last section, table of contents.