Basic Examples (5)
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]:=
Out[2]=
{3,1}
Do the same using the operator form of :
TakeSmaller
In[3]:=
list//[4,2]
Out[3]=
{3,1}
In[4]:=
Out[4]=
{3,1}
———
Take the largest two values smaller than the specified threshold in an :
In[1]:=
Out[1]=
c2,b1
———
Take the largest four numbers smaller than the specified value, or as many as are available:
In[1]:=
Out[1]=
{4,3,1}
———
Take all numbers with values under the threshold:
In[1]:=
Out[1]=
{4,1}
———
Take two values in a list of objects:
In[1]:=
Out[1]=
,
Scope (3)
Scope
(3)