Fork me on GitHub
#specter
<
2020-06-12
>
dadair00:06:51

I have a working solution if you’re interested,

dadair00:06:48

It was more involved than I thought, but not so bad. Had to extend IKVReduce for Java.util.HashMaps and the map-vals spectre protocols, but all in all it’s pretty succinct code

dadair00:06:32

I can post a gist maybe tomorrow

fmn02:06:52

Is there any performance benefit of using select-first over select-one ? My use case is to select the first one matching the path without considering if there's any duplicate in the collection.

nathanmarz16:06:41

@funyako.funyao156 select-first will terminate navigation early if relevant

nathanmarz16:06:04

e.g. (select-first [ALL even?] data) will be faster than (select-one [ALL even?] data)