Is every element in the chain is always matched against the rightmost one? Is there any reference/link/documentation all around describing this behavior? The official doc is pretty concise
This shows right to left as precedance, so do put everything on the left onto parenthesis starting from the right and youβll explicitly see the order of application. Also the pattern match expression will always evaluate to the full matched value. So yes everything will match the rightmost value.