What I'm trying to do is take a list and filter it based on comparisons of adjacent list members. Namely, something like this
filter(lambda x,y: x != y, someList)
to get rid of duplicate elements right next to each other. I can easily implement this other ways, but started out trying to do it with a list reduction/filter and am stubborn enough to want to keep trying until I figure it out. I am still not that experienced in python, but I feel like there is something like this that I am missing.
Thanks!
someListactually alistor sequence or some arbitrary iterable) etc... (desired input and output samples would also be good)