meander

markaddleman 2024-06-15T23:40:02.776449Z

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]

Samuel Ludwig 2024-07-30T16:27:28.112609Z

is preprocessing these lists by splitting them at the :ends and turning them into separate vectors/seqs out of the question?

Samuel Ludwig 2024-07-30T16:28:10.482889Z

as in [:begin 1 2 3 :end :begin 4 9 :end] -> [[1 2 3] [4 9]]

markaddleman 2024-07-30T16:29:08.308759Z

Nope and I ended up doing that. At first, I was mentally stuck on doing the entire thing in meander . Wrong tool :)

Samuel Ludwig 2024-07-30T16:30:13.104679Z

happens all the time 😄, im always trying to fit square pegs into round holes

🤣 1
markaddleman 2024-06-16T16:23:41.493849Z

I tried looking through strategies but I don’t see anything that obviously works.

markaddleman 2024-06-15T23:46:49.577069Z

(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 repeat

namenu 2024-06-16T06:49:43.854359Z

bottom up strategy ?