# [R], <s>73</s> 64 bytes <!-- language-all: lang-r --> function(m,d=diff(rbind(m,0)),`-`=rowSums)any(d[-d>0,]+d[-d<0,]) [Try it online!][TIO-km3mq8og] [R]: https://www.r-project.org/ [TIO-km3mq8og]: https://tio.run/##1ZNBT4NAEIXv8yuQExtpM@/uevQPeFSTYhciB2gDVOuvRwQ6zNJqTDkZsslHNjuz773Zqs1smx3KbZPvyqiInXV5lkXVa1667peNiTerja12H4@HojZJ@Rm5p5W75/jl9hvuOjBtYZN6XSRNlR@jKk3celu/R2/2IQ7qdG/DIIyDJj02NuTnEqExdJNFhSH68znigLsFQr@Yri6CfqEvdm2R4RPCSFA07MIjjDScgCL2iEeCol65ECuCIlbE0o2lWy9dESsajGFFGAmiY06QXUhlSOXTTTUNyS1zHTPCD0lgRr7SST3PyFeAi4lBKuNC2r@5yeL/NAs@nSd7PgFz/3WyrOjUbYHrNE3n6CWpjjRN3cJsyZ9HUURa6/ROJGvS06beAs1eIrGXmszPv791@wU "R – Try It Online" Based on the idea in [Leo's Husk answer](https://codegolf.stackexchange.com/a/220491/78274). Takes input as a matrix `m` of 1s and 0s with each pattern corresponding to a row. Outputs a swapped T/F value (in the footer, the results are swapped back).