I'm new in Clojure and function programming in general.
I want to execute a set of if/else's and if the condition is true I want to append some string at the of a list.
In JavaScript would be like this:
const a = 1;
const b = 2;
const c = 1;
const errors = [];
if (a !== b) {
errors.push("A and B should not be different");
}
if (a == c) {
errors.push("A and C should not be equal");
}
console.log(errors);
How could I accomplish this with Clojure?