Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Apply a function to progressively longer sequences from a list
ResourceFunction["AccumulateApply"][f,list] applies f to progressively longer sequences from list. |
Apply an arbitrary function to progressive ranges of numbers:
In[1]:= | ![]() |
Out[1]= | ![]() |
Find all substrings from the start of a message:
In[2]:= | ![]() |
Out[2]= | ![]() |
Generate a sequence of factorials:
In[4]:= | ![]() |
Out[4]= | ![]() |
In[5]:= | ![]() |
Out[5]= | ![]() |
Find the running maximum of a list:
In[6]:= | ![]() |
Out[6]= | ![]() |
AccumulateApply[Plus,list] is equivalent to Accumulate[list]:
In[7]:= | ![]() |
Out[7]= | ![]() |
In[8]:= | ![]() |
Out[8]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License