clojure Performing Simple Mathematical Operations

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Introduction

This is how you would add some numbers in Clojure syntax. Since the method occurs as the first argument in the list, we are evaluating the + (or addition) method on the rest of the arguments in the list.

Remarks

Performing mathematical operations is the basis of manipulating data and working with lists. Therefore, understand how it works is key to progressing in one's understanding of Clojure.



Got any clojure Question?