specter 2025-03-17

Hello, I came across an interesting case (to me 🙂). I built a navigation that searches the closest something that conform to some predicate in a linked-list. it does it by navigating to all the nodes and then do the predicate. There's a possibilty that there are couple of nodes that conform to the predicate, so I use select-first to take only the first instance. BUT! when I want to transform only the fist instance with the same fashion, I didn't find transform-first. I wonder, can I keep that same navigator (or even compose to it some thing) that will act like select-frist? maybe just add FIRST?

nope... after doing an ALL you cant jsut take FIRST. I think it must be at the operation level as it aggregates all the results...

you can do [(subselect ...) FIRST] to transform just the first one

where ... is any path