One approach to consider is using clojure.contrib.types, which provides general and abstract data types. If you're familiar with pattern matching from Scala, you'll feel right at home.
On Apr 2, 6:47 pm, strattonbrazil <strattonbra...@gmail.com> wrote: > What's the best way to keep track of what kind of value something is? > For example, if I have a hash of floats and I want to go through each > one and see if a given key-value, which happens to be a float, if it's > a distance or a frequency? Or if something is a struct or a specific > struct? I'm somewhat familiar with the pattern matching done in Scala > and couldn't find similar documentation in Clojure. > > I would think there's some way to filter out values that are a certain > struct, but I'd also like to attach information to primitives like > floats. Should I wrap my primitives in structs or do I need > metadata? -- 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 To unsubscribe, reply using "remove me" as the subject.