Fork me on GitHub
#specter
<
2017-05-04
>
nathanmarz03:05:50

@luxbock just noticed your question

nathanmarz03:05:26

yes there is, it's this:

(transform (subselect (multi-path FIRST LAST))
  (fn [[a b]] (if (> a b) [(str a) b] [a (str b)]))
  [1 2 3])
;; => [1 2 "3"]

luxbock03:05:14

Ah that's great, I will try to see if it works for my original use case