I have difficulty in using keep-indexed with multiple arguments:
Using:
(keep-indexed #(if (= %1 3) %2) [1 2 3 4 5])
I can get the value with index 3, namely (4).
If the index should be given as an argument, for example for index 3:
(keep-indexed #(if (= %1 ???) %2) 3 [1 2 3 4 5])
How should I modify the ???-part?