Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Determine if the count of elements satisfying a given test at specified levels of an expression falls within a defined range
Check that exactly 3 elements of a list are odd:
| In[1]:= |
| Out[1]= |
Check that at least 3 elements of a list are even:
| In[2]:= |
| Out[2]= |
Check that at least 4 cells of a matrix are odd:
| In[3]:= |
| Out[3]= |
| In[4]:= |
| Out[4]= |
Given a binary sequence, determine if at least 3 bits are set to 1:
| In[5]:= |
| In[6]:= |
| Out[6]= |
And no more than 4:
| In[7]:= |
| Out[7]= |
In a game, check if between 3 and 4 four players have reached a target score:
| In[8]:= |
| In[9]:= |
| Out[9]= |
Wolfram Language 14.0 (January 2024) or above
This work is licensed under a Creative Commons Attribution 4.0 International License