I am using om and soblano and I have a map function that works when I
declare at like this, on the last line of the function below:

(defn ical [data]
  (reify
    om/IDisplayName
      (display-name [_]
        (or (:react-name opts) "calendar"))
    om/IRender
      (render [this]
        (html/html  [:div
                       [:div.calendar-toolbar
                        [:div.btn-group.pull-right
                        [:a.right {:href "#"} "Right"]
                        [:a.left {:href "#"} "Left"]]
                      [:h3 "August 2014"]]
                      [:table.table
                        [:thead
                          [:tr (map (fn [day] [:th day]) weekdays)]]]]))))

But when I try and use the map with the anonymous function syntax like this:

                      [:table.table
                        [:thead
                          [:tr (map ([:th %]) weekdays)]]]]))))

I get the following error:

Uncaught Error: Invalid arity: 1

Cheers

Paul Cowan

Cutting-Edge Solutions (Scotland)

blog:      http://thesoftwaresimpleton.com/
website: http://www.cuttingedgesolutionsscotland.com/

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to