unifying introductory functions a bit
parent
608690dca3
commit
b5885e8867
@ -1,16 +1,10 @@
|
||||
Tuples - syntax
|
||||
Pattern Matching
|
||||
Functions returning functions
|
||||
Functions taking functions
|
||||
if expressions
|
||||
for comprehensions
|
||||
immutability/side effects
|
||||
state identity lifetime
|
||||
map, reduce, filter
|
||||
lists / cons
|
||||
memoization
|
||||
lazy sequences
|
||||
recursion
|
||||
recrusive list processing
|
||||
recursive list processing
|
||||
currying / pfa
|
||||
reflection
|
||||
|
@ -1,10 +1,16 @@
|
||||
(meditations
|
||||
"Your will face many decisions"
|
||||
"You will face many decisions"
|
||||
(= __ (if (false? (= 4 5)) :a :b))
|
||||
|
||||
"Some of them leave you no alternative"
|
||||
(= __ (if (> 4 3) []))
|
||||
|
||||
"And in such a case you may have nothing"
|
||||
(= nil (if (nil? __) [:a :b :c])))
|
||||
(= nil (if (nil? __) [:a :b :c]))
|
||||
|
||||
"In others your alternative may be interesting"
|
||||
(= :glory (if (not (empty? ())) :doom __))
|
||||
|
||||
"Or your fate may be sealed"
|
||||
(= __ (if-not (zero? __) 'doom 'doom)))
|
||||
|
||||
|
Loading…
Reference in New Issue