corywalker / expreduce

An experimental computer algebra system written in Go
MIT License
389 stars 27 forks source link

Level[] Support #144

Open darvin opened 6 years ago

darvin commented 6 years ago
In[233]:= Level[{1,2,3,4,{55}}, {2}]                                                             

Out[233]= {55}

In[234]:= ?Level                                                                                 
Level[expr, levelspec] gives a list of all subexpressions of expr
     on levels specified by levelspec. 
Level[expr, levelspec, f] applies f to the sequence of subexpressions.