Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,13 @@
|
|||
;;; Initial array
|
||||
lvars ar = {1 2 3 2 3 4};
|
||||
;;; Create a hash table
|
||||
lvars ht= newmapping([], 50, 0, true);
|
||||
;;; Put all array as keys into the hash table
|
||||
lvars i;
|
||||
for i from 1 to length(ar) do
|
||||
1 -> ht(ar(i))
|
||||
endfor;
|
||||
|
||||
;;; Collect keys into a list
|
||||
lvars ls = [];
|
||||
appdata(ht, procedure(x); cons(front(x), ls) -> ls; endprocedure);
|
||||
Loading…
Add table
Add a link
Reference in a new issue