Skip to content

Instantly share code, notes, and snippets.

// http://swizard.livejournal.com/200401.html
let sample_1 = "(+ (* 4 4) (* 2 (- 7 5)) 1)"
let sample_2 = "10"
let sample_3 = "(* 10 (- 0 1))"
let sample_4 = "(- (+ 10 10) -5 0)"
let sample_5 = "(+ (- (* (+ (- (* 1))))))"
let sample_6 = "(* 2 (+ (- 10 9) (- 3 (* 2 1))) (+ (- 10 9) (- 3 (* 2 1))))"
let sample_7 = "(+ (* 2 1) (+ 8 8) (- (+ 4 3 2 1) (* 3 3) (* 2 2)) (* 5 7))"
let sample_8 = "(- (+ (+ 3 3) (- 3 3) (+ 3 3) (- 3 3)) (* 2 2))"
<!DOCTYPE html>
<html>
<head>
<title>Title</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<style type="text/css">
@import url(https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz);
@import url(https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic);
@import url(https://fonts.googleapis.com/css?family=Ubuntu+Mono|Cousine|Inconsolata:400,700,400italic);
@coding4food
coding4food / Clojure exampla.clj
Created September 28, 2011 17:05
Simple Java/Clojure comparison
(defn blank? [s]
(every? #(Character/isWhitespace %) s))