ENGLISH

ClojureScript unraveled (revision 6)

Book information

Year
2016
Language
english
Format
PDF
Filesize
575 kB (589118 bytes)
Pages
211\211
Time added
2019-04-02 09:36:12

Description

funcool.github.io/clojurescript-unraveled Contents......Page 2 1 About this book......Page 6 2 Introduction......Page 7 3.1. First steps with Lisp syntax......Page 9 3.2.1. Numbers......Page 10 3.2.3. Symbols......Page 11 3.2.5. Characters......Page 12 Lists......Page 13 Vectors......Page 14 3.3. Vars......Page 15 3.4.1. The first contact......Page 16 3.4.2. Defining your own functions......Page 17 3.4.3. Functions with multiple arities......Page 18 3.4.5. Short syntax for anonymous functions......Page 19 3.5.1. Branching with if......Page 20 3.5.2. Branching with cond......Page 21 3.6. Truthiness......Page 22 3.7.1. Locals......Page 23 3.7.3. Loops......Page 24 Looping with loop/recur......Page 25 Replacing for loops with higher-order functions......Page 26 for sequence comprehensions......Page 29 3.8.1. Immutable and persistent......Page 31 3.8.2. The sequence abstraction......Page 33 nil-punning......Page 34 Functions that work on sequences......Page 35 Laziness......Page 39 Lists......Page 40 Vectors......Page 41 Maps......Page 44 Sets......Page 46 Queues......Page 48 3.9. Destructuring......Page 49 3.10.1. The thread-first macro (->)......Page 54 3.10.3. The thread-as macro (as->)......Page 55 3.10.5. The thread-cond macros (cond-> and cond->>)......Page 56 3.11.1. Standard (#?)......Page 57 3.11.2. Splicing (#?@)......Page 58 3.12.1. Defining a namespace......Page 59 3.12.2. Loading other namespaces......Page 60 3.12.3. Namespaces and File Names......Page 61 3.13.1. Protocols......Page 62 Extending existing types......Page 63 Participate in ClojureScript abstractions......Page 65 Introspection using Protocols......Page 66 3.13.2. Multimethods......Page 67 Defining a hierarchy......Page 68 Locally defined hierarchies......Page 69 Hierarchies in multimethods......Page 70 3.14. Data types......Page 71 3.14.1. Deftype......Page 72 3.14.2. Defrecord......Page 73 3.14.3. Implementing protocols......Page 74 3.14.4. Reify......Page 75 3.15. Host interoperability......Page 76 Creating new instances......Page 77 Access to object properties......Page 78 JavaScript objects......Page 79 Conversions......Page 80 Arrays......Page 81 3.16.1. Vars......Page 82 3.16.2. Atoms......Page 83 3.16.3. Volatiles......Page 84 4.1. Start with the Compiler......Page 86 4.1.3. Compile for Node.js......Page 87 Create the example application......Page 88 Compile the example application......Page 89 4.1.4. Compile for the Browser......Page 90 Compile the example application......Page 91 4.1.5. Watch process......Page 92 none......Page 93 4.2.1. Introduction......Page 94 4.2.2. Nashorn REPL......Page 95 4.2.3. Node.js REPL......Page 96 4.2.4. Browser REPL......Page 97 4.3. The Closure Library......Page 99 4.4.1. Installing leiningen......Page 100 4.4.2. First project......Page 101 4.4.3. Managing dependencies......Page 103 4.5.1. Closure Module compatible library......Page 104 4.5.2. CommonJS modules compatible libraries......Page 105 4.5.3. Legacy, module-less (global scope) libraries......Page 107 4.6.1. First steps......Page 108 4.6.2. Async Testing......Page 111 4.6.3. Fixtures......Page 112 4.6.4. Integrating with CI......Page 113 5.1.1. Data transformation......Page 114 5.1.2. Generalizing to process transformations......Page 116 5.1.3. Transducers in ClojureScript core......Page 120 5.1.4. Initialisation......Page 121 5.1.5. Stateful transducers......Page 123 5.1.8. Defining our own transducers......Page 127 5.1.9. Transducible processes......Page 128 5.2. Transients......Page 133 5.3.1. Vars......Page 136 5.3.2. Values......Page 138 5.3.3. Syntax for metadata......Page 139 5.3.4. Functions for working with metadata......Page 141 5.4.1. Functions......Page 142 5.4.2. Printing......Page 143 5.4.3. Sequences......Page 144 5.4.4. Collections......Page 145 Collection traits......Page 146 5.4.5. Associative......Page 148 5.4.6. Comparison......Page 151 5.4.7. Metadata......Page 152 Extending JavaScript types......Page 153 From ClojureScript to JS......Page 155 From JS to ClojureScript......Page 156 5.4.9. Reductions......Page 157 5.4.10. Asynchrony......Page 159 Atom......Page 161 Volatile......Page 166 From persistent to transient and viceversa......Page 167 Case study: the hodgepodge library......Page 168 Transient vectors and sets......Page 172 5.5.1. Channels......Page 174 Buffers......Page 177 Fixed......Page 178 Sliding......Page 179 Transducers......Page 180 Handling exceptions......Page 182 Offer and Poll......Page 183 5.5.2. Processes......Page 184 Choice......Page 186 Priority......Page 188 Defaults......Page 189 pipe......Page 190 pipeline-async......Page 191 pipeline......Page 192 split......Page 193 reduce......Page 194 onto-chan......Page 195 merge......Page 196 Mult......Page 197 Pub-sub......Page 199 Mixer......Page 200 6.1.2. First steps......Page 205 6.1.3. Interacting with JavaScript......Page 208 Reading......Page 211

Similar books

Session C11: Ancient Cultural Landscapes in South Europe – their Ecological Setting and Evolution, Session C22: Gardeners from South America, Session S04: Agro-Pastoralism and Early Metallurgy Sessions, Session WS29: The Idea of Enclosure in Recent Iberian Prehistory, Session C88: Rhytmes et causalites des dynamiques de l'anthropisation en Europe entre 6500 ET 500 BC: Hypotheses socio-culturelles et/ou climatiques: Proceedings of the XV UISPP World Congress (Lisbon 4-9 September 2006) / Actes du XV Congrès Mondial (Lisbonne 4-9 Septembre 2006) Vol.36

2010 · PDF

THE BRITISH ARMY IN INDIA: ITS PRESERVATION BY AN APPROPRIATE CLOTHING, HOUSING, LOCATING, RECREATIVE EMPLOYMENT, AND HOPEFUL ENCOURAGEMENT OF THE TROOPS. with AN APPENDIX ON INDIA : THE CLIMATE OP ITS HILLS ; THE DEVELOPMENT OF ITS RESODRCBS, INDUSTRY, AND ARTS ; THE ADMINISTRATION OF JUSTICE ; THE BLACK ACT ; THE PROGRESS OF CHRISTIANITY ; THE TRAFFIC IN OPIUM ; THE VALUE OF INDIA ; PERMANENT CAUSES OF DISAFFECTION, AND OF THE RECENT REBELLION ; THE TRADITIONARY POLICY; MISGOVERNMENT BY NATIVE RULERS ; ANNEXATIONS OF THEIR TERRITORY, ETC.

1858 · PDF

Idries Shah 27 Books Collection : A Perfumed Scorpion, A Veiled Gazelle, Caravan of Dreams, Darkest England, Destination Mecca, Evenings with Idries Shah, Knowing How to Know, Learning How to Learn, Letters and Lectures of Idries Shah, Neglected aspects of Sufi study, Observations, Oriental Magic, Reflections, Seeker after Truth, Special Illumination, Special Problems in the study of Sufi ideas, Sufi thought and action, Tales of the Dervishes, The Dermis Probe, The Elephant in the Dark, The Englishman Handbook, Idries Shah Antology, The Magic Monastery, The natives are restless, wisdom of the Idiots PDF.

2022 · PDF

The travels of Capts. Lewis and Clarke from St. Louis, by way of the Missouri and Columbia rivers, to the Pacific ocean; performed in the years 1804, 1805 & 1806, by order of the government of the United States. Containing delineations of the manners, customs, religion, &c. of the Indians, comp. from various authentic sources, and original documents, and a summary of the Statistical view of the Indian nations, from the official communication of Meriwether Lewis. Illustrated with a map of the country, inhabited by the western tribes of Indians

1809 · PDF