Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update latest ClojureDocs.org snapshot to October 26, 2012

  • Loading branch information...
commit bf8f63e7a726ecc8c3dc699c877c54a0ad680617 1 parent 10c2307
@jafingerhut authored
Showing with 312 additions and 22 deletions.
  1. +312 −22 snapshots/clojuredocs-snapshot-latest.txt
View
334 snapshots/clojuredocs-snapshot-latest.txt
@@ -1,4 +1,4 @@
-{:snapshot-time "Sun Oct 14 15:00:11 PDT 2012",
+{:snapshot-time "Fri Oct 26 22:54:17 PDT 2012",
:snapshot-info
{"clojure.zip/insert-right"
{:comments [],
@@ -1305,7 +1305,17 @@
:ns "clj-swing.combo-box",
:url "http://clojuredocs.org/v/5169"},
"clojure.string/replace"
- {:comments [],
+ {:comments
+ [{:namespace_id 345,
+ :ns "clojure.string",
+ :updated_at "2012-10-24 19:35:41.0",
+ :user_id 765,
+ :function "replace",
+ :version "1.3.0",
+ :created_at "2012-10-24 19:35:41.0",
+ :library "Clojure Core",
+ :library_id 15,
+ :body "How can i replace \".\" with #\"\\s\""}],
:see-alsos
[{:namespace_id 99,
:weight 1,
@@ -2926,9 +2936,43 @@
:ns "clojure.core",
:url "http://clojuredocs.org/v/5300"},
"clojure.core/*print-meta*"
- {:comments [],
- :see-alsos [],
- :examples [],
+ {:comments
+ [{:namespace_id 330,
+ :ns "clojure.core",
+ :updated_at "2012-10-24 18:30:51.0",
+ :user_id 755,
+ :function "*print-meta*",
+ :version "1.3.0",
+ :created_at "2012-10-24 18:30:51.0",
+ :library "Clojure Core",
+ :library_id 15,
+ :body
+ "\"printing an object\" means via **pr** not print or println"}],
+ :see-alsos
+ [{:namespace_id 99,
+ :weight 2,
+ :name "pr",
+ :updated_at "2011-09-07 03:48:35.0",
+ :version "1.2.0",
+ :created_at "2010-07-14 20:25:19.0",
+ :added nil,
+ :url "http://clojuredocs.org/v/2017",
+ :line "2815",
+ :arglists_comp "[]|[x]|[x & more]",
+ :url_friendly_name "pr",
+ :file "clojure/core.clj"}],
+ :examples
+ [{:namespace_id 330,
+ :ns "clojure.core",
+ :updated_at "2012-10-24 18:00:06.0",
+ :function "*print-meta*",
+ :version 3,
+ :created_at "2012-10-24 17:55:56.0",
+ :library "Clojure Core",
+ :lib_version "1.3.0",
+ :library_id 15,
+ :body
+ "user=> (binding [*print-meta* true] \n (pr (var defmacro)) )\n;;^{:macro true, :ns #<Namespace clojure.core>, :name defmacro, :arglists ^{:line 424, :column 15} ([name doc-string? attr-map? [params*] body] [name doc-string? attr-map? ^{:line 425, :column 46} ([params*] body) + attr-map?]), :column 1, :added \"1.0\", :doc \"Like defn, but the resulting function name is declared as a\\n macro and will be used as a macro by the compiler when it is\\n called.\", :line 419, :file \"clojure/core.clj\"} #'clojure.core/defmacro\nnil\n"}],
:id 5307,
:name "*print-meta*",
:ns "clojure.core",
@@ -5238,7 +5282,31 @@
:url "http://clojuredocs.org/v/2820"},
"clojure.core/disj"
{:comments [],
- :see-alsos [],
+ :see-alsos
+ [{:namespace_id 99,
+ :weight 1,
+ :name "dissoc",
+ :updated_at "2010-10-20 04:42:15.0",
+ :version "1.2.0",
+ :created_at "2010-07-14 20:26:08.0",
+ :added nil,
+ :url "http://clojuredocs.org/v/2091",
+ :line "1164",
+ :arglists_comp "[map]|[map key]|[map key & ks]",
+ :url_friendly_name "dissoc",
+ :file "clojure/core.clj"}
+ {:namespace_id 99,
+ :weight 1,
+ :name "disj!",
+ :updated_at "2011-06-10 14:01:33.0",
+ :version "1.2.0",
+ :created_at "2010-07-14 20:26:20.0",
+ :added nil,
+ :url "http://clojuredocs.org/v/2109",
+ :line "2593",
+ :arglists_comp "[set]|[set key]|[set key & ks]",
+ :url_friendly_name "disj!",
+ :file "clojure/core.clj"}],
:examples
[{:namespace_id 99,
:ns "clojure.core",
@@ -6801,6 +6869,18 @@
:line "560",
:arglists_comp "[name]|[ns name]",
:url_friendly_name "find-keyword",
+ :file "clojure/core.clj"}
+ {:namespace_id 99,
+ :weight 2,
+ :name "symbol",
+ :updated_at "2010-11-08 06:20:00.0",
+ :version "1.2.0",
+ :created_at "2010-07-14 20:20:50.0",
+ :added nil,
+ :url "http://clojuredocs.org/v/1624",
+ :line "476",
+ :arglists_comp "[name]|[ns name]",
+ :url_friendly_name "symbol",
:file "clojure/core.clj"}],
:examples
[{:namespace_id 99,
@@ -7326,7 +7406,19 @@
:url "http://clojuredocs.org/v/3887"},
"clojure.core/compare-and-set!"
{:comments [],
- :see-alsos [],
+ :see-alsos
+ [{:namespace_id 99,
+ :weight 1,
+ :name "atom",
+ :updated_at "2010-10-20 04:42:14.0",
+ :version "1.2.0",
+ :created_at "2010-07-14 20:25:27.0",
+ :added nil,
+ :url "http://clojuredocs.org/v/2028",
+ :line "1767",
+ :arglists_comp "[x]|[x & options]",
+ :url_friendly_name "atom",
+ :file "clojure/core.clj"}],
:examples
[{:namespace_id 99,
:ns "clojure.core",
@@ -12217,6 +12309,18 @@
:line "653",
:arglists_comp "[x]|[x y]|[x y & more]",
:url_friendly_name "=",
+ :file "clojure/core.clj"}
+ {:namespace_id 99,
+ :weight 1,
+ :name "identical?",
+ :updated_at "2010-10-20 04:42:05.0",
+ :version "1.2.0",
+ :created_at "2010-07-14 20:21:18.0",
+ :added nil,
+ :url "http://clojuredocs.org/v/1666",
+ :line "646",
+ :arglists_comp "[x y]",
+ :url_friendly_name "identical_q",
:file "clojure/core.clj"}],
:examples
[{:namespace_id 99,
@@ -21213,15 +21317,15 @@
:examples
[{:namespace_id 111,
:ns "clojure.set",
- :updated_at "2010-09-26 05:23:50.0",
+ :updated_at "2012-10-15 13:18:44.0",
:function "rename-keys",
- :version 3,
+ :version 4,
:created_at "2010-07-10 22:00:15.0",
:library "Clojure Core",
:lib_version "1.2.0",
:library_id 3,
:body
- "user=> (rename-keys {:a 1, :b 2} {:a :new-a, :b :new-b})\n{:new-a 1, :new-b 2}\n\n\n;; The behavior when the second map contains a key not in the first is interesting.\n;; I suspect you shouldn't depend on it. (Clojure 1.1)\n\nuser=> (rename-keys {:a 1} {:b :new-b})\n{ :a 1, :new-b nil}\n"}
+ "user=> (rename-keys {:a 1, :b 2} {:a :new-a, :b :new-b})\n{:new-a 1, :new-b 2}\n\n\n;; The behavior when the second map contains a key not in the first is interesting.\n;; I suspect you shouldn't depend on it. (Clojure 1.1 - no longer happens in 1.2.1)\n\nuser=> (rename-keys {:a 1} {:b :new-b})\n{ :a 1, :new-b nil}\n"}
{:namespace_id 111,
:ns "clojure.set",
:updated_at "2011-05-13 17:34:28.0",
@@ -22703,7 +22807,19 @@
:url "http://clojuredocs.org/v/3796"},
"clojure.core/bound-fn*"
{:comments [],
- :see-alsos [],
+ :see-alsos
+ [{:namespace_id 99,
+ :weight 0,
+ :name "bound-fn",
+ :updated_at "2010-10-20 04:42:03.0",
+ :version "1.2.0",
+ :created_at "2010-07-14 20:19:35.0",
+ :added nil,
+ :url "http://clojuredocs.org/v/1525",
+ :line "1525",
+ :arglists_comp "[& fntail]",
+ :url_friendly_name "bound-fn",
+ :file "clojure/core.clj"}],
:examples
[{:namespace_id 330,
:ns "clojure.core",
@@ -28707,7 +28823,19 @@
:url "http://clojuredocs.org/v/303"},
"clojure.core/max-key"
{:comments [],
- :see-alsos [],
+ :see-alsos
+ [{:namespace_id 99,
+ :weight 1,
+ :name "max",
+ :updated_at "2010-10-20 04:42:11.0",
+ :version "1.2.0",
+ :created_at "2010-07-14 20:24:03.0",
+ :added nil,
+ :url "http://clojuredocs.org/v/1903",
+ :line "912",
+ :arglists_comp "[x]|[x y]|[x y & more]",
+ :url_friendly_name "max",
+ :file "clojure/core.clj"}],
:examples
[{:namespace_id 99,
:ns "clojure.core",
@@ -28784,6 +28912,18 @@
:line "1723",
:arglists_comp "[x]|[x & options]",
:url_friendly_name "ref",
+ :file "clojure/core.clj"}
+ {:namespace_id 99,
+ :weight 0,
+ :name "commute",
+ :updated_at "2010-10-20 04:42:04.0",
+ :version "1.2.0",
+ :created_at "2010-07-14 20:20:33.0",
+ :added nil,
+ :url "http://clojuredocs.org/v/1600",
+ :line "1837",
+ :arglists_comp "[ref fun & args]",
+ :url_friendly_name "commute",
:file "clojure/core.clj"}],
:examples
[{:namespace_id 99,
@@ -34842,7 +34982,31 @@
:url "http://clojuredocs.org/v/450"},
"clojure.core/get-thread-bindings"
{:comments [],
- :see-alsos [],
+ :see-alsos
+ [{:namespace_id 99,
+ :weight 0,
+ :name "bound-fn",
+ :updated_at "2010-10-20 04:42:03.0",
+ :version "1.2.0",
+ :created_at "2010-07-14 20:19:35.0",
+ :added nil,
+ :url "http://clojuredocs.org/v/1525",
+ :line "1525",
+ :arglists_comp "[& fntail]",
+ :url_friendly_name "bound-fn",
+ :file "clojure/core.clj"}
+ {:namespace_id 99,
+ :weight 0,
+ :name "bound-fn*",
+ :updated_at "2010-10-20 04:42:07.0",
+ :version "1.2.0",
+ :created_at "2010-07-14 20:22:27.0",
+ :added nil,
+ :url "http://clojuredocs.org/v/1767",
+ :line "1514",
+ :arglists_comp "[f]",
+ :url_friendly_name "bound-fn*",
+ :file "clojure/core.clj"}],
:examples [],
:id 5539,
:name "get-thread-bindings",
@@ -40224,7 +40388,19 @@
:url "http://clojuredocs.org/v/1294"},
"clojure.core/empty?"
{:comments [],
- :see-alsos [],
+ :see-alsos
+ [{:namespace_id 99,
+ :weight 1,
+ :name "seq",
+ :updated_at "2010-10-20 04:42:08.0",
+ :version "1.2.0",
+ :created_at "2010-07-14 20:22:37.0",
+ :added nil,
+ :url "http://clojuredocs.org/v/1778",
+ :line "114",
+ :arglists_comp "[coll]",
+ :url_friendly_name "seq",
+ :file "clojure/core.clj"}],
:examples
[{:namespace_id 99,
:ns "clojure.core",
@@ -44249,7 +44425,18 @@
:ns "clojure.core",
:url "http://clojuredocs.org/v/5351"},
"clojure.core/some"
- {:comments [],
+ {:comments
+ [{:namespace_id 330,
+ :ns "clojure.core",
+ :updated_at "2012-10-26 02:26:42.0",
+ :user_id 763,
+ :function "some",
+ :version "1.3.0",
+ :created_at "2012-10-26 02:26:42.0",
+ :library "Clojure Core",
+ :library_id 15,
+ :body
+ "Be careful about using sets as predicates if you don't know what is in the set.\nIn particular, <pre>(#{nil} nil)</pre> is <pre>nil</pre> and <pre>(#{false} false)</pre> is <pre>false</pre> Consider using <pre>contains?</pre> instead."}],
:see-alsos
[{:namespace_id 99,
:weight 2,
@@ -46007,7 +46194,18 @@
"clojure.reflect/resolve-class"
{:comments [],
:see-alsos [],
- :examples [],
+ :examples
+ [{:namespace_id 341,
+ :ns "clojure.reflect",
+ :updated_at "2012-10-24 19:34:39.0",
+ :function "resolve-class",
+ :version 1,
+ :created_at "2012-10-24 19:34:39.0",
+ :library "Clojure Core",
+ :lib_version "1.3.0",
+ :library_id 15,
+ :body
+ ";;Check if class c exists on the classpath\n(use '[clojure.reflect :only [resolve-class]])\n\n(defn class-exists? [c] \n (resolve-class (.getContextClassLoader (Thread/currentThread)) c))\n\nuser=> (class-exists? 'org.joda.time.DateTime) \nnil"}],
:id 5963,
:name "resolve-class",
:ns "clojure.reflect",
@@ -46566,7 +46764,18 @@
:library "Clojure Core",
:library_id 3,
:body
- "The difference between **rem** and **mod** can be remembered by noting that **mod** always returns a value between 0 and div."}],
+ "The difference between **rem** and **mod** can be remembered by noting that **mod** always returns a value between 0 and div."}
+ {:namespace_id 330,
+ :ns "clojure.core",
+ :updated_at "2012-10-17 12:02:45.0",
+ :user_id 757,
+ :function "mod",
+ :version "1.3.0",
+ :created_at "2012-10-16 16:31:33.0",
+ :library "Clojure Core",
+ :library_id 15,
+ :body
+ "I am confused by the comment about the definition on lines 13+ of the example - which is not accurate when invoking mod when 'num' is positive and 'div' negative. Applying the definition to <pre>(mod 10 -3)</pre> we have \n<li> the largest multiple of -3 not exceeding 10 is 9, from using -3 as a multiplier</li>\n<li> however (mod 10 -3) yields -2, meaning that 10 exceeds the largest multiple not greater than 10 by -2 i.e. 10 - -2 = 12 is the largest multiple &lt;= 10, a contradiction.</li>\n<li> therefore (mod 10 -3) should yield 1, not -2 </li>\n\n<i>So unless I misunderstood</i>, the definition should be changed to something like: <br>\n<p>\"The mod function is defined as the amount by which a number exceeds the largest integer multiple of the divisor that is not greater than that number, <i>except when the number is positive and the divisor negative, in which case the result is the amount by which the number exceeds the smallest multiple that is not smaller than the number.</i>\"</p>\n\n<b>Or, change the implementation to something similar to</b>:\n\n<pre>(defn mod-2\n\t [num div]\n\t (let [m (rem num div)]\n\t (if (or (zero? m) (= (pos? num) (pos? div)))\n\t \tm\n\t \t(if (pos? div) (+ m div) m)))) \n</pre>\n\t \t\nto fit the current definition."}],
:see-alsos
[{:namespace_id 99,
:weight 2,
@@ -49414,7 +49623,18 @@
:arglists_comp "[name & body]",
:url_friendly_name "deftest",
:file "clojure/test.clj"}],
- :examples [],
+ :examples
+ [{:namespace_id 347,
+ :ns "clojure.test",
+ :updated_at "2012-10-17 08:49:42.0",
+ :function "is",
+ :version 2,
+ :created_at "2012-10-16 15:12:39.0",
+ :library "Clojure Core",
+ :lib_version "1.3.0",
+ :library_id 15,
+ :body
+ "(use '[clojure.test :only [is]])\n\nuser=> (is (true? true))\ntrue\n\n;; false assertions print a message and evaluate to false\n\nuser=> (is (true? false))\nFAIL in clojure.lang.PersistentList$EmptyList@1 (NO_SOURCE_FILE:1)\nexpected: (true? false)\n actual: (not (true? false))\nfalse\n\n"}],
:id 6033,
:name "is",
:ns "clojure.test",
@@ -49702,7 +49922,18 @@
:ns "clojure.contrib.accumulators",
:url "http://clojuredocs.org/v/4"},
"clojure.core/load-file"
- {:comments [],
+ {:comments
+ [{:namespace_id 330,
+ :ns "clojure.core",
+ :updated_at "2012-10-15 18:42:11.0",
+ :user_id 262,
+ :function "load-file",
+ :version "1.3.0",
+ :created_at "2012-10-15 18:42:11.0",
+ :library "Clojure Core",
+ :library_id 15,
+ :body
+ "<p>Be aware that this function is intended to load code only. If your data structures or a string in them grow bigger than around 65,535 it crashes.</p>\n\n<p>Exception similar to:</p>\n<pre>java.lang.ClassFormatError: Unknown constant tag 49 in class file parse$eval13</pre>\n\n<p>Please use <a href=\"/clojure_core/clojure.core/read-string\">read-string</a> instead.</p>\n\nExample: <pre>(read-string (slurp \"data.clj\"))</pre>\n\nSource: <a href=\"http://groups.google.com/group/clojure/browse_thread/thread/e556434a382de814/f8183c88db8fa257?lnk=gst&q=string+size#f8183c88db8fa257\">Google Groups</a>"}],
:see-alsos
[{:namespace_id 99,
:weight 1,
@@ -49968,7 +50199,31 @@
:url "http://clojuredocs.org/v/3039"},
"clojure.core/thread-bound?"
{:comments [],
- :see-alsos [],
+ :see-alsos
+ [{:namespace_id 99,
+ :weight 0,
+ :name "bound-fn",
+ :updated_at "2010-10-20 04:42:03.0",
+ :version "1.2.0",
+ :created_at "2010-07-14 20:19:35.0",
+ :added nil,
+ :url "http://clojuredocs.org/v/1525",
+ :line "1525",
+ :arglists_comp "[& fntail]",
+ :url_friendly_name "bound-fn",
+ :file "clojure/core.clj"}
+ {:namespace_id 99,
+ :weight 0,
+ :name "bound-fn*",
+ :updated_at "2010-10-20 04:42:07.0",
+ :version "1.2.0",
+ :created_at "2010-07-14 20:22:27.0",
+ :added nil,
+ :url "http://clojuredocs.org/v/1767",
+ :line "1514",
+ :arglists_comp "[f]",
+ :url_friendly_name "bound-fn*",
+ :file "clojure/core.clj"}],
:examples [],
:id 5790,
:name "thread-bound?",
@@ -50355,7 +50610,18 @@
:ns "circumspec.utils",
:url "http://clojuredocs.org/v/3761"},
"clojure.walk/macroexpand-all"
- {:comments [],
+ {:comments
+ [{:namespace_id 350,
+ :ns "clojure.walk",
+ :updated_at "2012-10-24 06:52:51.0",
+ :user_id 763,
+ :function "macroexpand-all",
+ :version "1.3.0",
+ :created_at "2012-10-24 06:51:06.0",
+ :library "Clojure Core",
+ :library_id 15,
+ :body
+ "DO NOT USE THIS FUNCTION, it doesn't handle special forms at all, and, as such, does not in fact expand into the ultimate macroexpansion of the form.\n\nFor example,\n<pre>(require '[clojure.walk :as walk])\n(println (walk/macroexpand-all '(quote (let [a 1] a))))\n</pre>\nWill print\n<pre>(quote (let* [a 1] a))\n</pre>\nWhen the correct answer is\n<pre>(quote (let [a 1] a))\n</pre>\nShowing an utter unawareness of proper handling of special forms\n\nDO NOT USE THIS FUNCTION"}],
:see-alsos
[{:namespace_id 99,
:weight 1,
@@ -50625,6 +50891,18 @@
:line "1247",
:arglists_comp "[x]",
:url_friendly_name "namespace",
+ :file "clojure/core.clj"}
+ {:namespace_id 99,
+ :weight 1,
+ :name "keyword",
+ :updated_at "2010-10-20 04:42:13.0",
+ :version "1.2.0",
+ :created_at "2010-07-14 20:25:04.0",
+ :added nil,
+ :url "http://clojuredocs.org/v/1995",
+ :line "506",
+ :arglists_comp "[name]|[ns name]",
+ :url_friendly_name "keyword",
:file "clojure/core.clj"}],
:examples
[{:namespace_id 99,
@@ -52583,7 +52861,19 @@
:line "57",
:arglists_comp "[m [k & ks :as keys]]",
:url_friendly_name "dissoc-in",
- :file "clojure/contrib/core.clj"}],
+ :file "clojure/contrib/core.clj"}
+ {:namespace_id 99,
+ :weight 1,
+ :name "disj",
+ :updated_at "2010-10-20 04:42:14.0",
+ :version "1.2.0",
+ :created_at "2010-07-14 20:25:31.0",
+ :added nil,
+ :url "http://clojuredocs.org/v/2035",
+ :line "1177",
+ :arglists_comp "[set]|[set key]|[set key & ks]",
+ :url_friendly_name "disj",
+ :file "clojure/core.clj"}],
:examples
[{:namespace_id 99,
:ns "clojure.core",
Please sign in to comment.
Something went wrong with that request. Please try again.