Please consider the following:
Split[data, patterns &]
patterns=Not[#=="a"]&&Not[#=="b"]&&...&&Not[#=="blabla"];
How can I define patterns without typing &&Not[#=="char"] for every single pattern?
|
Please consider the following:
How can I define |
|||
|
|
|
You can add some syntactic sugar to do that relatively easily. For example, define a head for that:
And use this as follows:
The performance may not be that great, but I guess the question was more about convenience. |
|||
|
|
|
It looks like you really want to use set of different dividers, in that case, you can simply test using a function that checks whether the current element is a member of your set of deviders:
To answer your litteral question, your
Then you can use
In a similar fasion, if you just wanted to combine a seriues of different test you could use I hope this helps. |
|||||
|
|
Another option is to create a temporary function which evaluates to
|
|||
|
|