Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikibooksThe Free Textbook Project
Search

Clojure Programming/Examples/API Examples/Documentation

From Wikibooks, open books for an open world
<Clojure Programming |Examples |API Examples

doc

[edit |edit source]
user=> (doc +)-------------------------clojure.core/+([] [x] [x y] [x y & more])  Returns the sum of nums. (+) returns 0.

find-doc

[edit |edit source]

Prints documentation for any var whose documentation or name contains a match for applied argument (regex, string, pattern).

user=> (find-doc "count")-------------------------clojure.core/assoc([map key val] [map key val & kvs])  assoc[iate]. When applied to a map, returns a new map of the    same (hashed/sorted) type, that contains the mapping of key(s) to    val(s). When applied to a vector, returns a new vector that    contains val at index. Note - index must be <= (count vector).-------------------------clojure.core/count ...

source

[edit |edit source]
user=> (use 'clojure.contrib.repl-utils)user=> (source string?)(def #^{:arglists '([x])    :doc "Return true if x is a String"} string? (fn string? [x] (instance? String x)))
Retrieved from "https://en.wikibooks.org/w/index.php?title=Clojure_Programming/Examples/API_Examples/Documentation&oldid=1724843"
Category:

[8]ページ先頭

©2009-2025 Movatter.jp