2016 Update
This commit is contained in:
parent
948b86eafa
commit
dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions
|
|
@ -0,0 +1,6 @@
|
|||
(de orderDisjoint (M N)
|
||||
(for S N
|
||||
(and (memq S M) (set @ NIL)) )
|
||||
(mapcar
|
||||
'((S) (or S (pop 'N)))
|
||||
M ) )
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
: (orderDisjoint '(the cat sat on the mat) '(mat cat))
|
||||
-> (the mat sat on the cat)
|
||||
|
||||
: (orderDisjoint '(the cat sat on the mat) '(cat mat))
|
||||
-> (the cat sat on the mat)
|
||||
|
||||
: (orderDisjoint '(A B C A B C A B C) '(C A C A))
|
||||
-> (C B A C B A A B C)
|
||||
|
||||
: (orderDisjoint '(A B C A B D A B E) '(E A D A))
|
||||
-> (E B C A B D A B A)
|
||||
|
||||
: (orderDisjoint '(A B) '(B))
|
||||
-> (A B)
|
||||
|
||||
: (orderDisjoint '(A B) '(B A))
|
||||
-> (B A)
|
||||
|
||||
: (orderDisjoint '(A B B A) '(B A))
|
||||
-> (B A B A)
|
||||
Loading…
Add table
Add a link
Reference in a new issue