user=> (first (first provs))
"p1"
user=>
On Tue, Dec 21, 2010 at 1:18 PM, Benny Tsai wrote:
> 'filter' is for getting a subset of the elements in a collection. For
> getting the names of the provinces, what you want is to get all the
> keys from your 'provs' map, which can be done via the 'keys
ll just stick with condp though. Thanks David.
On Tue, Dec 21, 2010 at 12:45 AM, David Nolen wrote:
> On Tue, Dec 21, 2010 at 12:23 AM, Sean Corfield wrote:
>
>> On Mon, Dec 20, 2010 at 7:54 PM, Stephen Pardue
>> wrote:
>> > (defn panda [x]
>> &g
Hello Clojure land!
I am writing a function that I just realized that I could implement
using multi methods (I think).
However, I will describe the problem anyways.
I want to be able to call a function that will take different actions
depending on the type of in the input.
I first wrote this funct