This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns circuits.core) | |
(defn wire | |
"This is a wire. It takes an optional delay | |
keyword parameter and outputs a map with :i, and :o | |
which are atoms and :d which represents the delay | |
in milliseconds. The default delay is 0. When i changes value, | |
o follows in d number of seconds" | |
[& {:keys [del] :or {del 0}}] | |
(let [in (atom 0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;dddd | |
(ns package_manager | |
(:use [clojure.string :only [split, lower-case]])) | |
(def system (atom {})) | |
(def installed (atom (sorted-set))) | |
(def running (atom true)) | |
(defn in? [coll elm] | |
(some #{elm} coll)) |
NewerOlder