Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Split a list every time an element satisfies a test
ResourceFunction["SplitWhen"][list,f] splits list into sublists, splitting after each ei for which f[ei] is True. |
Split a sequence when an element is even:
In[1]:= |
Out[1]= |
Split at every occurrence of an element:
In[2]:= |
Out[2]= |
Split at every occurrence of an negative integer:
In[3]:= |
Out[3]= |
Number of integers to find a prime:
In[4]:= |
Out[4]= |
Wolfram Language 11.3 (March 2018) or above
This work is licensed under a Creative Commons Attribution 4.0 International License