Basic Examples 
(5)
 

Take two numbers smaller than the specified value in a list:
list={1,3,0,4,5}
Out[1]=
{1,3,0,4,5}
In[2]:=
[◼]
TakeSmaller
[list,4,2]
Out[2]=
{3,1}
Do the same using the operator form of
TakeSmaller
:
In[3]:=
list//
[◼]
TakeSmaller
[4,2]
Out[3]=
{3,1}
In[4]:=
[◼]
TakeSmaller
[4,2]@list
Out[4]=
{3,1}
———
Take the largest two values smaller than the specified threshold in an
Association
:
In[1]:=
[◼]
TakeSmaller
[<|a0,b1,c2,d5,e4|>,3,2]
Out[1]=
c2,b1
———
Take the largest four numbers smaller than the specified value, or as many as are available:
In[1]:=
[◼]
TakeSmaller
[{4,7,1,3},5,UpTo[4]]
Out[1]=
{4,3,1}
———
Take all numbers with values under the threshold:
In[1]:=
[◼]
TakeSmaller
[{1,7,4,5},5,UpTo[Infinity]]
Out[1]=
{4,1}
———
Take two values in a list of
Quantity
objects:
In[1]:=
[◼]
TakeSmaller

100
g
,
2
kg
,
3
kg
,
4
kg
,
3
kg
,2
Out[1]=

2
kg
,
100
g


Scope 
(3)
 
