On Dec 2, 9:22 pm, Rich Hickey <[EMAIL PROTECTED]> wrote:
>
> For those of us that don't do Ruby - what does === do?

It's a supporting method for the case keyword

case object
when pred1: action1
when pred2: action2
..
end

translates to

if pred1 === object
  action1
elsif pred2 === object
  action2
..
end

It's not really a fuzzy-value match, just nice syntactic sugar for a
multiply-dispatched match method.

martin

--~--~---------~--~----~------------~-------~--~----~
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
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to