I hereby claim:
- I am loganmhb on github.
- I am loganmhb (https://keybase.io/loganmhb) on keybase.
- I have a public key ASDyENxMBbdQ6JRJQzfhxRtuHxaXXi-37Ikljq7O5dCyQwo
To claim this, I am signing this object:
(def test-responses [{:r 5, :c "This is awesome!"} | |
{:r 1, :c "This sucks!"} | |
{:r 3, :c "This is all right."}]) | |
(defn clean-contents | |
[response] | |
(update-in response | |
[:c] | |
(comp (partial re-seq #"[a-z]+") |
(ns spec-test.core | |
(:require [clojure.spec :as s]) | |
(:refer-clojure :exclude [for])) | |
(s/def ::for-bindings | |
(s/* (s/cat :lval any? | |
:rval any? | |
:modifiers (s/* (s/cat :type #{:when :let :while} | |
:modifier-body any?))))) |
(def a (atom 0)) | |
(def f1 (future | |
(while (< @a 1000000000) | |
(swap! a inc)) | |
(println "Done incrementing!"))) | |
(def f2 (future | |
(swap! a (fn [current-val] | |
(println "Trying...`a' is" current-val) |
;; todo: how do you actually manage dependencies? | |
(ql:quickload "generic-cl") | |
(ql:quickload "trivia") | |
;; Persistent red-black tree implemnetation per Okasaki's paper: | |
;; https://www.cs.tufts.edu/~nr/cs257/archive/chris-okasaki/redblack99.pdf | |
(defpackage sset | |
(:use generic-cl)) |
I hereby claim:
To claim this, I am signing this object: