specter

Latest version: 1.1.3
oskarkv 2019-07-06T14:35:25.008400Z

I don't understand compact. 😛

oskarkv 2019-07-06T15:00:55.009400Z

Can anyone explain this?

> (s/setval (s/regex-nav #"(?<=( |^))[a-z]") "_" "hello world")
"_ello _orld"
> (s/select (s/regex-nav #"(?<=( |^))[a-z]") "hello world")
[["h" ""] ["e" ""] ["l" ""] ["l" ""] ["o" ""] ["w" " "] ["o" ""] ["r" ""] ["l" ""] ["d" ""]]

oskarkv 2019-07-06T15:18:44.010100Z

Oh, it's because re-seq looks at "hello world", then "ello world", etc.

currentoor 2019-07-06T18:22:06.010600Z

what can you do with the result of traverse that you can’t do with the result of select?