Paste number 71268: functions

Index of paste annotations: 1

Paste number 71268: functions
Pasted by: topo
When:3 years, 2 months ago
Share:Tweet this! | http://paste.lisp.org/+1IZO
Channel:#lispcafe
Paste contents:
Raw Source | XML | Display As
(defun creapush-pop( )
  
  (cons (random-elt2
	 '(
	   (cons 'CL-OPENGL:ROTATE (cons 122 (cons 1233 (cons 15  (cons 15 nil) ))))
	   (cons 'CL-OPENGL:TRANSLATE (cons 1 (cons 2 (cons 1.3  nil) )))  
	   (cons 'CL-OPENGL:TRANSLATE (cons 0 (cons 6 (cons 0  nil) )))
	   (cons 'glut:solid-sphere (cons 6.529d0 nil))
	   ;;(glut:solid-sphere 6.529d0 13 3)
	   ))
	(cons '(gl:pop-matrix) nil )  
	)
  )

Annotations for this paste:

Annotation number 1: more lispy
Pasted by: madnif
When:3 years, 2 months ago
Share:Tweet this! | http://paste.lisp.org/+1IZO/1
Paste contents:
Raw Source | Display As
(defun creapush-pop ()
  (cons (random-elt2
         '((cons 'CL-OPENGL:ROTATE (cons 122 (cons 1233 (cons 15  (cons 15 nil) ))))
           (cons 'CL-OPENGL:TRANSLATE (cons 1 (cons 2 (cons 1.3  nil) )))  
           (cons 'CL-OPENGL:TRANSLATE (cons 0 (cons 6 (cons 0  nil) )))
           (cons 'glut:solid-sphere (cons 6.529d0 nil))
           ;;(glut:solid-sphere 6.529d0 13 3)))
        (cons '(gl:pop-matrix) nil )))

(let ((temp (creapush-pop)))
  (first temp) ; your first part
  (second temp)) ; the second part of your list

good luck topo

Colorize as:
Show Line Numbers
Index of paste annotations: 1

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.