Re: Help with primer on maps, lists or vectors
Those were useful ideas. I will read up more. But the thread got hijacked. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Help with primer on maps, lists or vectors
Sean, Well said. Just bought my subscription. Stu On Wed, Jun 1, 2011 at 5:51 PM, Ken Wesson kwess...@gmail.com wrote: On Wed, Jun 1, 2011 at 10:06 AM, Ambrose Bonnaire-Sergeant abonnaireserge...@gmail.com wrote: Just to be clear, I linked to an unlimited time, free (cost), non-crippled demo. Er, if such a thing exists, why would anyone pay at the tollbooth? As if we haven't spent enough time discussing the Atlas in other threads... I bought lifetime access to support the project, get discounted access to the Clojure 1.3.0 atlas (coming soon) and to stop the popup nag box appearing while I use the atlas. And, frankly, I was spurred into buying it as a matter of principle because you were complaining so much about paying for information (the atlas contains a lot of metadata that is curated by hand - and therefore a value add over the raw data which is freely available elsewhere). So Chas has you to thank for the $40 I paid him :) -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. -- http://worldsingles.com/ Railo Technologies, Inc. -- http://www.getrailo.com/ Perfection is the enemy of the good. -- Gustave Flaubert, French realist novelist (1821-1880) -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Help with primer on maps, lists or vectors
+1 on the atlas. It's a great way to surf clojure. I paid for it not knowing if I'd use it, but the organization is great and would feel comfortable recommending it to a wide range of people interested in clojure. Sent via mobile On Jun 1, 2011, at 6:44 AM, Ambrose Bonnaire-Sergeant abonnaireserge...@gmail.com wrote: Hi Mohan, If you are exploring the Clojure landscape may I recommend Clojure Atlas. http://www.clojureatlas.com/org.clojure:clojure:1.2.0?guest=t#ds/maps The core functions provided with Clojure are grouped by concept. Just type a new subject into the search box. If you are trying to find a particular functionality, the Atlas is usually pretty helpful in pointing you in the right direction. Of course for further details feel free to post on the group as you already have done! Thanks, Ambrose -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Help with primer on maps, lists or vectors
Atlas is a really useful way to look up information. It even shows the source !! Thanks, Mohan On Jun 1, 4:44 pm, Ambrose Bonnaire-Sergeant abonnaireserge...@gmail.com wrote: Hi Mohan, If you are exploring the Clojure landscape may I recommend Clojure Atlas. http://www.clojureatlas.com/org.clojure:clojure:1.2.0?guest=t#ds/maps The core functions provided with Clojure are grouped by concept. Just type a new subject into the search box. If you are trying to find a particular functionality, the Atlas is usually pretty helpful in pointing you in the right direction. Of course for further details feel free to post on the group as you already have done! Thanks, Ambrose -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Help with primer on maps, lists or vectors
How do I retrieve :z from this map? I've tried (val (find (...)) but I am still learning the ropes. Maybe a primer on maps, lists or vectors will help me. I use Java. I know that there is a String[] object. {:x 1, :y {a b}, :z #String[] [Ljava.lang.String;@1f139b7} Thanks, Mohan -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Aw: Help with primer on maps, lists or vectors
Hi, there are various ways to retrieve the value: (def m {:x 1, :y {a b}, :z #String[] [Ljava.lang.String;@1f139b7}) Useful if m might be nil: (get m :z) (get m :z some-default-if-not-found) If you know m is always non-nil the following is sometimes useful eg. with other HOFs like map etc. (m :z) (m :z some-default-if-not-found) If you know the your key is a keyword (as in this case) you also put the key in front. (:z m) (:z m some-default-if-not-found) This does not work if your keys are for example Strings. (z m) ; = does *not* work For vectors the same works except that the keys are always integers. Hope this 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 clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Help with primer on maps, lists or vectors
Hi Mohan, If you are exploring the Clojure landscape may I recommend Clojure Atlas. http://www.clojureatlas.com/org.clojure:clojure:1.2.0?guest=t#ds/maps The core functions provided with Clojure are grouped by concept. Just type a new subject into the search box. If you are trying to find a particular functionality, the Atlas is usually pretty helpful in pointing you in the right direction. Of course for further details feel free to post on the group as you already have done! Thanks, Ambrose -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Help with primer on maps, lists or vectors
On Wed, Jun 1, 2011 at 7:44 AM, Ambrose Bonnaire-Sergeant abonnaireserge...@gmail.com wrote: Hi Mohan, If you are exploring the Clojure landscape may I recommend Clojure Atlas. http://www.clojureatlas.com/org.clojure:clojure:1.2.0?guest=t#ds/maps The core functions provided with Clojure are grouped by concept. Just type a new subject into the search box. If you are trying to find a particular functionality, the Atlas is usually pretty helpful in pointing you in the right direction. Isn't that site behind a paywall? -- Protege: What is this seething mass of parentheses?! Master: Your father's Lisp REPL. This is the language of a true hacker. Not as clumsy or random as C++; a language for a more civilized age. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Help with primer on maps, lists or vectors
On Wed, Jun 1, 2011 at 7:50 PM, Ken Wesson kwess...@gmail.com wrote: On Wed, Jun 1, 2011 at 7:44 AM, Ambrose Bonnaire-Sergeant abonnaireserge...@gmail.com wrote: Hi Mohan, If you are exploring the Clojure landscape may I recommend Clojure Atlas. http://www.clojureatlas.com/org.clojure:clojure:1.2.0?guest=t#ds/maps The core functions provided with Clojure are grouped by concept. Just type a new subject into the search box. If you are trying to find a particular functionality, the Atlas is usually pretty helpful in pointing you in the right direction. Isn't that site behind a paywall? There's a Clojure 1.2 demo altas which is free to use. I have an account but I don't always log in because the demo is so useful. The link I posted is to the demo. There's a small nag screen that pops up which you can dismiss. Ambrose -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Aw: Re: Help with primer on maps, lists or vectors
Am Mittwoch, 1. Juni 2011 13:50:15 UTC+2 schrieb Ken Wesson: Isn't that site behind a paywall? And? -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Re: Help with primer on maps, lists or vectors
On Wed, Jun 1, 2011 at 8:33 AM, Meikel Brandmeyer m...@kotka.de wrote: Am Mittwoch, 1. Juni 2011 13:50:15 UTC+2 schrieb Ken Wesson: Isn't that site behind a paywall? And? And, it's a bit of a bait-and-switch for someone to suggest it to somebody without mentioning that fact. I, for one, absolutely hate it if someone posts a seemingly helpful link and I click it and find myself staring at a tollbooth instead of what was promised. I expect MohanR likely would feel the same way. So I'd suggest that as a common courtesy IF one is going to recommend such links at all then they should be up-front about such matters and state it outright alongside the link. -- Protege: What is this seething mass of parentheses?! Master: Your father's Lisp REPL. This is the language of a true hacker. Not as clumsy or random as C++; a language for a more civilized age. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Re: Help with primer on maps, lists or vectors
On Wed, Jun 1, 2011 at 9:09 PM, Ken Wesson kwess...@gmail.com wrote: On Wed, Jun 1, 2011 at 8:33 AM, Meikel Brandmeyer m...@kotka.de wrote: Am Mittwoch, 1. Juni 2011 13:50:15 UTC+2 schrieb Ken Wesson: Isn't that site behind a paywall? And? And, it's a bit of a bait-and-switch for someone to suggest it to somebody without mentioning that fact. Just to be clear, I linked to an unlimited time, free (cost), non-crippled demo. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Re: Help with primer on maps, lists or vectors
On Wed, Jun 1, 2011 at 10:06 AM, Ambrose Bonnaire-Sergeant abonnaireserge...@gmail.com wrote: Just to be clear, I linked to an unlimited time, free (cost), non-crippled demo. Ah. Er, if such a thing exists, why would anyone pay at the tollbooth? -- Protege: What is this seething mass of parentheses?! Master: Your father's Lisp REPL. This is the language of a true hacker. Not as clumsy or random as C++; a language for a more civilized age. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Re: Help with primer on maps, lists or vectors
On Wed, Jun 1, 2011 at 5:51 PM, Ken Wesson kwess...@gmail.com wrote: On Wed, Jun 1, 2011 at 10:06 AM, Ambrose Bonnaire-Sergeant abonnaireserge...@gmail.com wrote: Just to be clear, I linked to an unlimited time, free (cost), non-crippled demo. Er, if such a thing exists, why would anyone pay at the tollbooth? As if we haven't spent enough time discussing the Atlas in other threads... I bought lifetime access to support the project, get discounted access to the Clojure 1.3.0 atlas (coming soon) and to stop the popup nag box appearing while I use the atlas. And, frankly, I was spurred into buying it as a matter of principle because you were complaining so much about paying for information (the atlas contains a lot of metadata that is curated by hand - and therefore a value add over the raw data which is freely available elsewhere). So Chas has you to thank for the $40 I paid him :) -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. -- http://worldsingles.com/ Railo Technologies, Inc. -- http://www.getrailo.com/ Perfection is the enemy of the good. -- Gustave Flaubert, French realist novelist (1821-1880) -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en