Fork me on GitHub
#malli
<
2021-08-18
>
lsenjov02:08:09

Or just certain positional elements?

Ben Sless04:08:29

I gave a really bad example, sorry Better example, for N=2 and T=int: [1 1 7 7 8 8 2 2 3 3]

ikitommi04:08:26

don't think so, :and would be the way to do this, but it currently pushes you out of the sequence.

ikitommi04:08:19

also noticed that function schemas expect a :cat, which is bad as one can't wrap it like [:and [:catn [:min :int] [:max :int]] [:fn (fn [min max] (< min max))]]

Ben Sless05:08:36

Could it be done with textual regular expressions using capture groups?

Ben Sless06:08:23

Something like (P)\1