Thanks guys. I have mentioned Clojure in the Wikipedia entry for
Docstrings at: http://en.wikipedia.org/wiki/Docstring
On 19 Aug, 21:22, Paddy3118 wrote:
> Hi, Does clojure have docstrings:http://en.wikipedia.org/wiki/Docstring
> and, if so, do you have a link to the feature in the Clojure
> docu
> Do you have a link to this in the official Clojure documentation? I
> would like to add the link to the Wikipedia article.
http://clojure.github.com/clojure/clojure.core-api.html#clojure.core/defn
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To
On Aug 19, 9:37 pm, Joop Kiefte wrote:
> (defn function-name
> "Your docstring goes here"
> [your argument list & more]
> (call some functions))
>
> 2010/8/19 Paddy3118 :
>
> > Hi, Does clojure have docstrings:http://en.wikipedia.org/wiki/Docstring
> > and, if so, do you have a link t
Hi,
On 20 Aug., 07:18, ngocdaothanh wrote:
> > (defn foo
> > "..."
> > ([a] ...)
> > ([a b] ...))
>
> Is there any way to add docstring for each case? (One for summary, one
> for [a], and one for [a b].)
No. (And honestly: I don't see any use for this. Why is one docstring
not enough to
> (defn foo
> "..."
> ([a] ...)
> ([a b] ...))
Is there any way to add docstring for each case? (One for summary, one
for [a], and one for [a b].)
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@g
On Thu, Aug 19, 2010 at 10:09 PM, Ameen wrote:
> So it is before arguments. What is the motivation behind that
> opposition to other lisps and python ?
>
Functions support mutiple arity.
(defn foo
"..."
([a] ...)
([a b] ...))
--
You received this message because you are subscribed to
So it is before arguments. What is the motivation behind that
opposition to other lisps and python ?
On 19 août, 22:37, Joop Kiefte wrote:
> (defn function-name
> "Your docstring goes here"
> [your argument list & more]
> (call some functions))
>
> 2010/8/19 Paddy3118 :
>
> > Hi, Does
On Aug 19, 4:37 pm, Joop Kiefte wrote:
> (defn function-name
> "Your docstring goes here"
> [your argument list & more]
>(call some functions))
And then you can access it with (doc function-name).
(find-doc #"regexp") or (find-doc "string") searches all doc strings.
There is also (clo
(defn function-name
"Your docstring goes here"
[your argument list & more]
(call some functions))
2010/8/19 Paddy3118 :
> Hi, Does clojure have docstrings: http://en.wikipedia.org/wiki/Docstring
> and, if so, do you have a link to the feature in the Clojure
> documentation? Thanks.
>
>
Hi, Does clojure have docstrings: http://en.wikipedia.org/wiki/Docstring
and, if so, do you have a link to the feature in the Clojure
documentation? Thanks.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@g
10 matches
Mail list logo