Mathematica > 関数反復 >

TakeWhile

TakeWhile[list, crit]
crit[ei]Trueである限り,要素eilist の最初から返し続ける.
連続した偶数要素を抽出する:
In[1]:=
Click for copyable input
Out[1]=
 
純関数を用いて連続した10より小さい要素を取り出す:
In[1]:=
Click for copyable input
Out[1]=
バージョン 6 の新機能
© 2008 Wolfram Research, Inc. japanese.gif
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team