AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Clojure lighttable tutorial windows1/4/2024 ![]() ![]() whereas 15 is smaller than 1 squared plus 5 squared. For example: 10 is larger than 1 squared plus 0 squared the count of how many elements are smaller than the sum of their squared Write a function which takes a vector of integers as an argument. Define a function that computes factorials. Clojure syntax, pros and cons (macros, structural editing) (TODO: demo?) Clojurescript, compiles to Javascript js interop, re-frame, etc. make data & transformations the essence of your program V symbols evaluate to the value they reference (str "Join " "multiple " "things " 1 :foo " as a string.") #(+ 5 %) function literal: add 5 to the given argument foo+bar, foo&bar, foo->bar, foo?, bar! legal symbol names ![]() (+ 1 2 3 4) arbitrary number of arguments to some functions (+ 1 2) function call: function then arguments foo symbol evaluates to the value of foo You can run these in a repl on your computer or, if you haven’t installed clojure, in a Clojure repl on. These notes are valid clojure code and you can run them and modify them on your computer.
0 Comments
Read More
Leave a Reply. |