Clojure Program Flow

Master the flow of your Clojure programs using conditionals, logical functions, and various forms of iteration. This course covers everything from basic conditional statements to advanced iteration, allowing you to control your program's execution with precision.

Lessons and practices

Using if and if-not to Check Hero Health

Adding Else Block to Villain Agility Check

Determine Hero Health Status Using cond

Enhancing cond with Additional Conditions

Hero Health Check with when and when-not

Determine Hero's Status with Conditionals

Using the do Form in Conditionals

Master Conditionals with Hero's Speed

Exploring and Operator in Clojure

and Operator In Action

Exploring the or Operator in Clojure

or Operator In Action

Exploring the not Function in Clojure

Combining Logical Functions for Tactical Hints

Explore Clojure's Comparison Functions

Filling the Blanks with Comparison Functions

Understanding Equality Functions in Clojure

Fix Comparisons in Code

Master Comparison and Equality Functions

Simulating Shooter Game Reloading with While Loop

Print Shooter Queue with While Loop

Simulating Shooter Game Using loop/recur

Fix Recur Tail Position in Shooter Game

Simulate Bullet Firing using loop/recur

Using doseq to Iterate Targets

Iterating over Game Actions

Grouping Expressions with doseq

Understanding dotimes in Clojure

Defeat Monsters with Dotimes Loop

Using Map Function in a Shooter Game

Transform Player Scores with map Function

Using map with Multiple Collections

Using Map with Multiple Collections

Selective Filtering with filter and remove

Filter and Remove In Practice

Understanding reduce

Reduce Enemy Hit Points

Interested in this course? Learn and practice with Cosmo!

Practice is how you turn knowledge into actual skills.