Clojure Programming by Chas Emerick Brian Carper & Christophe Grand

Clojure Programming by Chas Emerick Brian Carper & Christophe Grand

Author:Chas Emerick, Brian Carper & Christophe Grand
Language: eng
Format: epub
Tags: COMPUTERS / Programming Languages / LISP
ISBN: 9781449394745
Publisher: O’Reilly Media
Published: 2012-03-30T04:00:00+00:00


This new first is here to take only the keyword part of the dispatch value. Remember: you can only use keywords, symbols, or classes in hierarchies.

Now we can check and uncheck checkboxes by using the more flexible set notation for checkable values:

(fill {:tag :input :attrs {:value "yes" :type "checkbox"}} #{"yes" "y"}) ;= {:attrs {:checked "checked", :type "checkbox", :value "yes"}, :tag :input} (fill *1 #{"no" "n"}) ;= {:attrs {:type "checkbox", :value "yes"}, :tag :input}

While other input elements and noninput elements are filled as we’d expect:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.