Advertisement
Latkoski

Декарт2

Jun 6th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.35 KB | None | 0 0
  1. (defun grupiraj (x y)
  2.     (list x y)
  3.     )
  4.  
  5. (defun pom (a b pom_a)
  6.     (cond
  7.         ((null a) nil)
  8.         ((null b) nil)
  9.         ((null pom_a)(pom a (cdr b) a))
  10.         ((not(null pom_a))(cons (grupiraj (car b)(car pom_a))(pom a b (cdr pom_a))))
  11.         )
  12.     )
  13.  
  14.  
  15. (defun dekartS (a b)
  16.     (pom a b a)
  17.     )
  18.  
  19. (print (dekartS '()'(1 2)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement