Skip to content

Instantly share code, notes, and snippets.

@beakr
Created January 5, 2012 13:52
Show Gist options
  • Save beakr/1565348 to your computer and use it in GitHub Desktop.
Save beakr/1565348 to your computer and use it in GitHub Desktop.
Lisp math
;; Adding multiple nums ;;
(+ 2 3) ;; Adds 2 & 3 together...
(* 3 3) ;; 3 x 3, 9.
;; Just a lil' warm up...
(float (/ 7 10)) ;; Don't mistake all these semicolons for Javascript...*wink*
;; Algebra:
(setf d 3)
(d)
(setf a 4)
(a)
(+ a d) ;; w00t
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment