Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update latest snapshot to Apr 22 2012

  • Loading branch information...
commit 375090d0112126f5263e69f4032d2c34219010bf 1 parent f13de7e
@jafingerhut authored
Showing with 201 additions and 17 deletions.
  1. +201 −17 snapshots/clojuredocs-snapshot-latest.txt
View
218 snapshots/clojuredocs-snapshot-latest.txt
@@ -1,4 +1,4 @@
-{:snapshot-time "Sun Apr 15 02:41:40 PDT 2012",
+{:snapshot-time "Sun Apr 22 08:05:58 PDT 2012",
:snapshot-info
{"clojure.zip/insert-right"
{:comments [],
@@ -2516,7 +2516,29 @@
:lib_version "1.2.0",
:library_id 3,
:body
- ";; The shortest input stops interleave:\n\nuser=> (interleave [:a :b] (iterate inc 1))\n(:a 1 :b 2)"}],
+ ";; The shortest input stops interleave:\n\nuser=> (interleave [:a :b] (iterate inc 1))\n(:a 1 :b 2)"}
+ {:namespace_id 330,
+ :ns "clojure.core",
+ :updated_at "2012-04-19 18:58:28.0",
+ :function "interleave",
+ :version 1,
+ :created_at "2012-04-19 18:58:28.0",
+ :library "Clojure Core",
+ :lib_version "1.3.0",
+ :library_id 15,
+ :body
+ "(def s1 [[:000-00-0000 \"TYPE 1\" \"JACKSON\" \"FRED\"]\n [:000-00-0001 \"TYPE 2\" \"SIMPSON\" \"HOMER\"]\n [:000-00-0002 \"TYPE 4\" \"SMITH\" \"SUSAN\"]])\n\n(interleave (map #(nth % 0 nil) s1) (map #(nth % 1 nil) s1))"}
+ {:namespace_id 330,
+ :ns "clojure.core",
+ :updated_at "2012-04-19 18:59:32.0",
+ :function "interleave",
+ :version 1,
+ :created_at "2012-04-19 18:59:32.0",
+ :library "Clojure Core",
+ :lib_version "1.3.0",
+ :library_id 15,
+ :body
+ "(def s1 [[:000-00-0000 \"TYPE 1\" \"JACKSON\" \"FRED\"]\n [:000-00-0001 \"TYPE 2\" \"SIMPSON\" \"HOMER\"]\n [:000-00-0002 \"TYPE 4\" \"SMITH\" \"SUSAN\"]])\n\n(def cols [0 2 3])\n\n(defn f1 \n [s1 col] \n (map #(get-in s1 [% col] nil) (range (count s1))))\n\n(apply interleave (map (partial f1 s1) cols))\n(:000-00-0000 \"JACKSON\" \"FRED\" :000-00-0001 \"SIMPSON\" \"HOMER\" :000-00-0002 \"SMITH\" \"SUSAN\")"}],
:id 5560,
:name "interleave",
:ns "clojure.core",
@@ -4661,7 +4683,18 @@
:lib_version "1.2.0",
:library_id 3,
:body
- ";; We can use get-in for reaching into nested maps:\nuser=> (def m {:username \"sally\"\n :profile {:name \"Sally Clojurian\"\n :address {:city \"Austin\" :state \"TX\"}}})\n#'user/m\n\nuser=> (get-in m [:profile :name])\n\"Sally Clojurian\"\nuser=> (get-in m [:profile :address :city])\n\"Austin\"\nuser=> (get-in m [:profile :address :zip-code])\nnil\nuser=> (get-in m [:profile :address :zip-code] \"no zip code!\")\n\"no zip code!\"\n\n\n;; Vectors are also associative:\nuser=> (def v [[1 2 3]\n [4 5 6]\n [7 8 9]])\n#'user/v\nuser=> (get-in v [0 2])\n3\nuser=> (get-in v [2 1])\n8\n\n\n;; We can mix associative types:\nuser=> (def mv {:username \"jimmy\"\n :pets [{:name \"Rex\"\n :type :dog}\n {:name \"Sniffles\"\n :type :hamster}]})\n#'user/mv\nuser=> (get-in mv [:pets 1 :type])\n:hamster\n"}],
+ ";; We can use get-in for reaching into nested maps:\nuser=> (def m {:username \"sally\"\n :profile {:name \"Sally Clojurian\"\n :address {:city \"Austin\" :state \"TX\"}}})\n#'user/m\n\nuser=> (get-in m [:profile :name])\n\"Sally Clojurian\"\nuser=> (get-in m [:profile :address :city])\n\"Austin\"\nuser=> (get-in m [:profile :address :zip-code])\nnil\nuser=> (get-in m [:profile :address :zip-code] \"no zip code!\")\n\"no zip code!\"\n\n\n;; Vectors are also associative:\nuser=> (def v [[1 2 3]\n [4 5 6]\n [7 8 9]])\n#'user/v\nuser=> (get-in v [0 2])\n3\nuser=> (get-in v [2 1])\n8\n\n\n;; We can mix associative types:\nuser=> (def mv {:username \"jimmy\"\n :pets [{:name \"Rex\"\n :type :dog}\n {:name \"Sniffles\"\n :type :hamster}]})\n#'user/mv\nuser=> (get-in mv [:pets 1 :type])\n:hamster\n"}
+ {:namespace_id 330,
+ :ns "clojure.core",
+ :updated_at "2012-04-19 19:09:23.0",
+ :function "get-in",
+ :version 1,
+ :created_at "2012-04-19 19:09:23.0",
+ :library "Clojure Core",
+ :lib_version "1.3.0",
+ :library_id 15,
+ :body
+ "(def s1 [[:000-00-0000 \"TYPE 1\" \"JACKSON\" \"FRED\"]\n [:000-00-0001 \"TYPE 2\" \"SIMPSON\" \"HOMER\"]\n [:000-00-0002 \"TYPE 4\" \"SMITH\" \"SUSAN\"]])\n\n(def cols [0 2 3])\n\n(defn f1 \n [s1 col] \n (map #(get-in s1 [% col] nil) (range (count s1))))\n\n(apply interleave (map (partial f1 s1) cols))\n\n(:000-00-0000 \"JACKSON\" \"FRED\" :000-00-0001 \"SIMPSON\" \"HOMER\" :000-00-0002 \"SMITH\" \"SUSAN\")"}],
:id 5536,
:name "get-in",
:ns "clojure.core",
@@ -4810,6 +4843,18 @@
:arglists_comp
"[]|[stream]|[stream eof-error? eof-value]|[stream eof-error? eof-value recursive?]",
:url_friendly_name "read",
+ :file "clojure/core.clj"}
+ {:namespace_id 99,
+ :weight 0,
+ :name "load-string",
+ :updated_at "2010-10-20 04:42:12.0",
+ :version "1.2.0",
+ :created_at "2010-07-14 20:24:26.0",
+ :added nil,
+ :url "http://clojuredocs.org/v/1939",
+ :line "3154",
+ :arglists_comp "[s]",
+ :url_friendly_name "load-string",
:file "clojure/core.clj"}],
:examples
[{:namespace_id 99,
@@ -9684,7 +9729,18 @@
:library "Clojure Core",
:lib_version "1.2.0",
:library_id 3,
- :body "user=> (into () '(1 2 3))\n(3 2 1)\n"}],
+ :body "user=> (into () '(1 2 3))\n(3 2 1)\n"}
+ {:namespace_id 330,
+ :ns "clojure.core",
+ :updated_at "2012-04-16 20:07:03.0",
+ :function "into",
+ :version 1,
+ :created_at "2012-04-16 20:07:03.0",
+ :library "Clojure Core",
+ :lib_version "1.3.0",
+ :library_id 15,
+ :body
+ "(defn test-key-inclusion-cols\n \"return all values in column1 that arent' in column2\"\n [column1 column2]\n (filter (complement (into #{} column2)) column1))\n"}],
:id 5563,
:name "into",
:ns "clojure.core",
@@ -11391,7 +11447,19 @@
:line "3328",
:arglists_comp "[c1 c2]|[c1 c2 & colls]",
:url_friendly_name "interleave",
- :file "clojure/core.clj"}],
+ :file "clojure/core.clj"}
+ {:namespace_id 113,
+ :weight 2,
+ :name "join",
+ :updated_at "2010-10-20 04:42:18.0",
+ :version "1.2.0",
+ :created_at "2010-07-14 20:27:52.0",
+ :added nil,
+ :url "http://clojuredocs.org/v/2472",
+ :line "130",
+ :arglists_comp "[coll]|[separator [x & more]]",
+ :url_friendly_name "join",
+ :file "clojure/string.clj"}],
:examples
[{:namespace_id 99,
:ns "clojure.core",
@@ -15898,7 +15966,19 @@
:line "63",
:arglists_comp "",
:url_friendly_name "iofactory",
- :file "clojure/java/io.clj"}],
+ :file "clojure/java/io.clj"}
+ {:namespace_id 99,
+ :weight 3,
+ :name "slurp",
+ :updated_at "2011-08-25 12:50:37.0",
+ :version "1.2.0",
+ :created_at "2010-07-14 20:22:18.0",
+ :added nil,
+ :url "http://clojuredocs.org/v/1753",
+ :line "5365",
+ :arglists_comp "[f & opts]",
+ :url_friendly_name "slurp",
+ :file "clojure/core.clj"}],
:examples
[{:namespace_id 104,
:ns "clojure.java.io",
@@ -17900,7 +17980,18 @@
"clojure.core/dec'"
{:comments [],
:see-alsos [],
- :examples [],
+ :examples
+ [{:namespace_id 330,
+ :ns "clojure.core",
+ :updated_at "2012-04-22 14:33:12.0",
+ :function "dec'",
+ :version 1,
+ :created_at "2012-04-22 14:33:12.0",
+ :library "Clojure Core",
+ :lib_version "1.3.0",
+ :library_id 15,
+ :body
+ "user=> (dec' 0.1)\n-0.9\n\nuser=> (dec' 1)\n0\n\nuser=> (dec' 1.0)\n0.0"}],
:id 5445,
:name "dec'",
:ns "clojure.core",
@@ -22937,7 +23028,18 @@
:lib_version "1.2.0",
:library_id 3,
:body
- "user=> (spit \"event.log\" \"test 1\\n\" :append true)\nnil\n\nuser=> (spit \"event.log\" \"test 2\\n\" :append true)\nnil\n\nuser=> (println (slurp \"event.log\"))\ntest 1\ntest 2\n\nnil\n"}],
+ "user=> (spit \"event.log\" \"test 1\\n\" :append true)\nnil\n\nuser=> (spit \"event.log\" \"test 2\\n\" :append true)\nnil\n\nuser=> (println (slurp \"event.log\"))\ntest 1\ntest 2\n\nnil\n"}
+ {:namespace_id 330,
+ :ns "clojure.core",
+ :updated_at "2012-04-18 17:41:33.0",
+ :function "spit",
+ :version 1,
+ :created_at "2012-04-18 17:41:33.0",
+ :library "Clojure Core",
+ :lib_version "1.3.0",
+ :library_id 15,
+ :body
+ "(defn append-to-file\n \"Uses spit to append to a file specified with its name as a string, or\n anything else that writer can take as an argument. s is the string to\n append.\" \n [file-name s]\n (spit file-name ostr :append true))"}],
:id 5769,
:name "spit",
:ns "clojure.core",
@@ -23228,7 +23330,18 @@
"[f arg1]|[f arg1 arg2]|[f arg1 arg2 arg3]|[f arg1 arg2 arg3 & more]",
:url_friendly_name "partial",
:file "clojure/core.clj"}],
- :examples [],
+ :examples
+ [{:namespace_id 86,
+ :ns "clojure.contrib.str-utils2",
+ :updated_at "2012-04-19 19:03:28.0",
+ :function "partial",
+ :version 1,
+ :created_at "2012-04-19 19:03:28.0",
+ :library "Clojure Contrib",
+ :lib_version "1.2.0",
+ :library_id 1,
+ :body
+ "(def s1 [[:000-00-0000 \"TYPE 1\" \"JACKSON\" \"FRED\"]\n [:000-00-0001 \"TYPE 2\" \"SIMPSON\" \"HOMER\"]\n [:000-00-0002 \"TYPE 4\" \"SMITH\" \"SUSAN\"]])\n\n(def cols [0 2 3])\n\n(defn f1 \n [s1 col] \n (map #(get-in s1 [% col] nil) (range (count s1))))\n\n(apply interleave (map (partial f1 s1) cols))\n(:000-00-0000 \"JACKSON\" \"FRED\" :000-00-0001 \"SIMPSON\" \"HOMER\" :000-00-0002 \"SMITH\" \"SUSAN\")"}],
:id 1282,
:name "partial",
:ns "clojure.contrib.str-utils2",
@@ -24664,7 +24777,31 @@
:url "http://clojuredocs.org/v/1351"},
"clojure.core/defn"
{: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}
+ {:namespace_id 99,
+ :weight 1,
+ :name "defn-",
+ :updated_at "2010-10-20 04:42:07.0",
+ :version "1.2.0",
+ :created_at "2010-07-14 20:22:30.0",
+ :added nil,
+ :url "http://clojuredocs.org/v/1771",
+ :line "3823",
+ :arglists_comp "[name & decls]",
+ :url_friendly_name "defn-",
+ :file "clojure/core.clj"}],
:examples
[{:namespace_id 99,
:ns "clojure.core",
@@ -28573,7 +28710,19 @@
:url "http://clojuredocs.org/v/5120"},
"clojure.core/load-string"
{:comments [],
- :see-alsos [],
+ :see-alsos
+ [{:namespace_id 99,
+ :weight 3,
+ :name "read-string",
+ :updated_at "2010-12-01 15:32:37.0",
+ :version "1.2.0",
+ :created_at "2010-07-14 20:21:47.0",
+ :added nil,
+ :url "http://clojuredocs.org/v/1707",
+ :line "2894",
+ :arglists_comp "[s]",
+ :url_friendly_name "read-string",
+ :file "clojure/core.clj"}],
:examples [],
:id 5589,
:name "load-string",
@@ -39008,7 +39157,18 @@
"clojure.contrib.duck-streams/spit"
{:comments [],
:see-alsos [],
- :examples [],
+ :examples
+ [{:namespace_id 21,
+ :ns "clojure.contrib.duck-streams",
+ :updated_at "2012-04-17 19:15:47.0",
+ :function "spit",
+ :version 2,
+ :created_at "2012-04-17 19:15:18.0",
+ :library "Clojure Contrib",
+ :lib_version "1.2.0",
+ :library_id 1,
+ :body
+ "(defn append-to-file\n \"Uses spit to append to an output file.\n ostr is the string, and file-name is an\n actual file name read in using slurp or\n a constant in double quote characters.\"\n \n [file-name ostr]\n (spit file-name ostr :append true))"}],
:id 253,
:name "spit",
:ns "clojure.contrib.duck-streams",
@@ -39549,7 +39709,19 @@
:line "132",
:arglists_comp "[x & opts]",
:url_friendly_name "output-stream",
- :file "clojure/java/io.clj"}],
+ :file "clojure/java/io.clj"}
+ {:namespace_id 99,
+ :weight 2,
+ :name "spit",
+ :updated_at "2010-10-20 04:42:03.0",
+ :version "1.2.0",
+ :created_at "2010-07-14 20:19:59.0",
+ :added nil,
+ :url "http://clojuredocs.org/v/1555",
+ :line "5380",
+ :arglists_comp "[f content & options]",
+ :url_friendly_name "spit",
+ :file "clojure/core.clj"}],
:examples
[{:namespace_id 336,
:ns "clojure.java.io",
@@ -41628,9 +41800,9 @@
{:comments [],
:see-alsos
[{:namespace_id 86,
- :weight 0,
+ :weight 1,
:name "partial",
- :updated_at "2010-10-20 04:41:58.0",
+ :updated_at "2012-04-19 19:03:28.0",
:version "1.2.0",
:created_at "2010-07-14 20:59:34.0",
:added nil,
@@ -43024,9 +43196,9 @@
{:comments [],
:see-alsos
[{:namespace_id 330,
- :weight 0,
+ :weight 1,
:name "dec'",
- :updated_at "2011-09-26 06:26:46.0",
+ :updated_at "2012-04-22 14:33:12.0",
:version "1.3.0",
:created_at "2011-09-26 06:04:25.0",
:added "1.0",
@@ -45726,6 +45898,18 @@
:line "2224",
:arglists_comp "[pred coll]",
:url_friendly_name "split-with",
+ :file "clojure/core.clj"}
+ {:namespace_id 99,
+ :weight 1,
+ :name "interpose",
+ :updated_at "2010-10-20 04:42:13.0",
+ :version "1.2.0",
+ :created_at "2010-07-14 20:24:52.0",
+ :added nil,
+ :url "http://clojuredocs.org/v/1978",
+ :line "4084",
+ :arglists_comp "[sep coll]",
+ :url_friendly_name "interpose",
:file "clojure/core.clj"}],
:examples
[{:namespace_id 113,
Please sign in to comment.
Something went wrong with that request. Please try again.