Hi,
On 26 Aug., 17:02, HB <[email protected]> wrote:
> Hey,
> Basically, I understand what let form does but I'm not sure when to
> use it.
> Would you please enlighten me about it? (if possible some typical Java
> code and then covert it to Clojure let form).
> I really appreciate your time and help.
> Thanks.
String s = "Hello";
Integer len = s.length();
System.out.println("String has length: " + len.toString());
---
(let [s "Hello"
len (count s)]
(println "String has length:" len))
Hope that helps.
Sincerely
Meikel
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en