What pattern will match the following vectors?
[:begin 1 2 3 :end]
[:begin 1 2 3 :end :begin 4 9 :end]
[:begin 1 2 :end :begin 3 4 :end :begin 5 6 :end]
is preprocessing these lists by splitting them at the :ends and turning them into separate vectors/seqs out of the question?
as in [:begin 1 2 3 :end :begin 4 9 :end] -> [[1 2 3] [4 9]]
Nope and I ended up doing that. At first, I was mentally stuck on doing the entire thing in meander . Wrong tool :)
happens all the time 😄, im always trying to fit square pegs into round holes
I tried looking through strategies but I don’t see anything that obviously works.
(m/find [:begin 1 2 3 :end]
[:begin . (m/pred int?) ... :end]
true)
matches one sequence of :begin and :end but I don’t know how to get meander to understand that the pattern can repeatbottom up strategy ?