Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update latest ClojureDocs.org snapshot to May 4, 2012

  • Loading branch information...
commit 54a4d0ff158fd1d9ea52a78a01a63fc135e45130 1 parent 9393afd
@jafingerhut authored
Showing with 23 additions and 11 deletions.
  1. +23 −11 snapshots/clojuredocs-snapshot-latest.txt
View
34 snapshots/clojuredocs-snapshot-latest.txt
@@ -1,4 +1,4 @@
-{:snapshot-time "Sat Apr 28 11:30:22 PDT 2012",
+{:snapshot-time "Fri May 04 22:41:54 PDT 2012",
:snapshot-info
{"clojure.zip/insert-right"
{:comments [],
@@ -7561,7 +7561,19 @@
:url "http://clojuredocs.org/v/2857"},
"clojure.core/declare"
{:comments [],
- :see-alsos [],
+ :see-alsos
+ [{:namespace_id 99,
+ :weight 4,
+ :name "def",
+ :updated_at "2011-08-16 10:30:10.0",
+ :version "1.2.0",
+ :created_at "2010-10-20 04:44:11.0",
+ :added nil,
+ :url "http://clojuredocs.org/v/5268",
+ :line nil,
+ :arglists_comp "",
+ :url_friendly_name "def",
+ :file nil}],
:examples
[{:namespace_id 99,
:ns "clojure.core",
@@ -13848,26 +13860,26 @@
:examples
[{:namespace_id 99,
:ns "clojure.core",
- :updated_at "2010-10-07 15:48:07.0",
+ :updated_at "2012-04-30 20:49:45.0",
:function "swap!",
- :version 1,
+ :version 2,
:created_at "2010-10-07 15:48:07.0",
:library "Clojure Core",
:lib_version "1.2.0",
:library_id 3,
:body
- "user> (def *players* (atom ()))\n#'user/*players*\n\nuser> (swap! *players* conj :player1)\n(:player1)\n\nuser> (swap! *players* conj :player2)\n(:player2 :player1)\n\nuser> (deref *players*)\n(:player2 :player1)"}
+ "user> (def players (atom ()))\n#'user/players\n\nuser> (swap! players conj :player1)\n(:player1)\n\nuser> (swap! players conj :player2)\n(:player2 :player1)\n\nuser> (deref players)\n(:player2 :player1)"}
{:namespace_id 99,
:ns "clojure.core",
- :updated_at "2010-10-07 15:48:45.0",
+ :updated_at "2012-04-30 20:50:15.0",
:function "swap!",
- :version 1,
+ :version 2,
:created_at "2010-10-07 15:48:45.0",
:library "Clojure Core",
:lib_version "1.2.0",
:library_id 3,
:body
- "user> (def *counter* (atom 0))\n#'user/*counter*\n\nuser> (swap! *counter* inc)\n1\n\nuser> (swap! *counter* inc)\n2"}],
+ "user> (def counter (atom 0))\n#'user/counter\n\nuser> (swap! counter inc)\n1\n\nuser> (swap! counter inc)\n2"}],
:id 5780,
:name "swap!",
:ns "clojure.core",
@@ -19114,15 +19126,15 @@
";; The following defines a lazy-seq of all positive numbers. Note that \n;; the lazy-seq allows us to make a recursive call in a safe way because\n;; the call does not happen immediately but instead creates a closure.\n\nuser=> (defn positive-numbers \n\t([] (positive-numbers 1))\n\t([n] (lazy-seq (cons n (positive-numbers (inc n))))))\n#'user/positive-numbers\n\nuser=> (take 5 (positive-numbers))\n(1 2 3 4 5)\n\n"}
{:namespace_id 330,
:ns "clojure.core",
- :updated_at "2011-11-23 23:56:54.0",
+ :updated_at "2012-05-05 03:49:26.0",
:function "lazy-seq",
- :version 3,
+ :version 4,
:created_at "2011-11-23 23:55:10.0",
:library "Clojure Core",
:lib_version "1.3.0",
:library_id 15,
:body
- ";; A lazy-seq of Fibonacci numbers (fn = fn-1 + fn-2)\n;; The producer function takes exactly two parameters\n;; (because we need the last 2 elements to produce a new one)\nuser=> (defn fib [a b] (lazy-seq (cons a (fib b (+ b a)))))\n\nuser=> take 5 (fib 1 1))\n(1 1 2 3 5)"}
+ ";; A lazy-seq of Fibonacci numbers (fn = fn-1 + fn-2)\n;; The producer function takes exactly two parameters\n;; (because we need the last 2 elements to produce a new one)\nuser=> (defn fib [a b] (lazy-seq (cons a (fib b (+ b a)))))\n\nuser=> (take 5 (fib 1 1))\n(1 1 2 3 5)"}
{:namespace_id 330,
:ns "clojure.core",
:updated_at "2012-02-26 15:53:44.0",
Please sign in to comment.
Something went wrong with that request. Please try again.