Given a thrush operator, I have a filter expression as one of the forms. The pred function itself needs to be passed a fixed parameter as below, where I want to pass 4 to the pred function and not to the filter function. How do I do that ?
(->> (a 2) (b 3) (filter pred? 4)))
Thanks,
Murtaza
Assuming your
pred?takes 2 parameters, first any value (in you example 4) another is the value that is passed fromfilterfunction for each element in the sequence.