Is it possible to use the "thread-first" macro if any of the required forms are part of a Javascript interop?
For example, if you wanted to group inputs in ranges of size 10, you might have something like the following:
(defn get-size [i]
(-> i
(/ 10)
(.ceil js/Math)))
However, this doesn't work as presumably the result after division gets passed to .ceil
as if it were a function. Wrapping the last form in extra parenthesis to try and have it evaluated as a single function expression also does not seem to work.