These are materials for the Clojure Workshop.
Please fork the repo, and enjoy the show!
Run lein marg
and open docs/uberdoc.html
in your browser to view contents.
Implement functions, and have lots of FN!
Tasks are broken down into groups:
- prefix notation
- anonymous functions
- function shortcuts
- function composition (
comp
,partial
,complement
) - multiple-arity functions
- language primitives (keywords, symbols
- simple destructuring patterns
- concept of let
- conditionals
- usage of closures
- vectors, lists, sets, maps
- sequential and associative DSs
- accessing values
- adding/removing values to/from list
- updating
- basic sequence operations (map, reduce, filter, remove)
- combining sequence operations
- for/doseq for eager list manipulation and side-effects
- how to use recursion instead of state
- how to use map destructuring
- how to use list destructuring
- how to generate a java class
- how to create an Jar entrypoint
- reify, proxy
- macros basics
- delayed evaluation
- basic STM concepts
- how to mutate an STM variable
- futures
- launching threads
- functional polymorphism
- application and usage of multimethods
- functional polymoprhism
- application and usage of protocols
Copyright © 2012-2014 Clojure Workshop Team: Maximilian Karasz, Jan Stępień, Marek Kubica, Oleksandr Petrov
Commercial use of complete work or parts of work is not allowed to anyone except for Clojure Workshop Team at whole or in parts.
Licensed under Creative Commons Attribution-NonCommercial 3.0: http://creativecommons.org/licenses/by-nc/3.0/
When using complete work or parts of work, explicit attribution is required.