📄 enumerable.iterator.html
字号:
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../net/conic/prototype/Array.html" title="net.conic.prototype 中的类">Array</A></CODE></FONT></TD>
<TD><CODE><B>Enumerable.</B><B><A HREF="../../../../net/conic/prototype/Enumerable.html#findAll(net.conic.prototype.Enumerable.Iterator)">findAll</A></B>(<A HREF="../../../../net/conic/prototype/Enumerable.Iterator.html" title="net.conic.prototype 中的类">Enumerable.Iterator</A> iterator)</CODE>
<BR>
执行iterator迭代,并将迭代结果返回为true的元素的值集合返回。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../net/conic/prototype/Array.html" title="net.conic.prototype 中的类">Array</A></CODE></FONT></TD>
<TD><CODE><B>Enumerable.</B><B><A HREF="../../../../net/conic/prototype/Enumerable.html#grep(net.conic.prototype.Enumerable.Pattern, net.conic.prototype.Enumerable.Iterator)">grep</A></B>(net.conic.prototype.Enumerable.Pattern pattern,
<A HREF="../../../../net/conic/prototype/Enumerable.Iterator.html" title="net.conic.prototype 中的类">Enumerable.Iterator</A> iterator)</CODE>
<BR>
执行iterator迭代,将对每个元素的做toString()操作后执行字符串匹配工作。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../net/conic/prototype/Object.html" title="net.conic.prototype 中的类">Object</A></CODE></FONT></TD>
<TD><CODE><B>Enumerable.</B><B><A HREF="../../../../net/conic/prototype/Enumerable.html#inject(net.conic.prototype.Object, net.conic.prototype.Enumerable.Iterator)">inject</A></B>(<A HREF="../../../../net/conic/prototype/Object.html" title="net.conic.prototype 中的类">Object</A> memo,
<A HREF="../../../../net/conic/prototype/Enumerable.Iterator.html" title="net.conic.prototype 中的类">Enumerable.Iterator</A> iterator)</CODE>
<BR>
对每个元素执行iterator操作,并在执行iterator操作时将memo以后注入的方式执行.说不太清楚,看源代码吧,这个方法也较为常用.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../net/conic/prototype/Array.html" title="net.conic.prototype 中的类">Array</A></CODE></FONT></TD>
<TD><CODE><B>Enumerable.</B><B><A HREF="../../../../net/conic/prototype/Enumerable.html#map(net.conic.prototype.Enumerable.Iterator)">map</A></B>(<A HREF="../../../../net/conic/prototype/Enumerable.Iterator.html" title="net.conic.prototype 中的类">Enumerable.Iterator</A> iterator)</CODE>
<BR>
等同collect()方法</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../net/conic/prototype/Object.html" title="net.conic.prototype 中的类">Object</A></CODE></FONT></TD>
<TD><CODE><B>Enumerable.</B><B><A HREF="../../../../net/conic/prototype/Enumerable.html#max(net.conic.prototype.Enumerable.Iterator)">max</A></B>(<A HREF="../../../../net/conic/prototype/Enumerable.Iterator.html" title="net.conic.prototype 中的类">Enumerable.Iterator</A> iterator)</CODE>
<BR>
返回每次迭代执行的结果的最大值</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../net/conic/prototype/Object.html" title="net.conic.prototype 中的类">Object</A></CODE></FONT></TD>
<TD><CODE><B>Enumerable.</B><B><A HREF="../../../../net/conic/prototype/Enumerable.html#min(net.conic.prototype.Enumerable.Iterator)">min</A></B>(<A HREF="../../../../net/conic/prototype/Enumerable.Iterator.html" title="net.conic.prototype 中的类">Enumerable.Iterator</A> iterator)</CODE>
<BR>
返回每次迭代执行的结果的最小值</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../net/conic/prototype/Array.html" title="net.conic.prototype 中的类">Array</A></CODE></FONT></TD>
<TD><CODE><B>Enumerable.</B><B><A HREF="../../../../net/conic/prototype/Enumerable.html#partition(net.conic.prototype.Enumerable.Iterator)">partition</A></B>(<A HREF="../../../../net/conic/prototype/Enumerable.Iterator.html" title="net.conic.prototype 中的类">Enumerable.Iterator</A> iterator)</CODE>
<BR>
根据判断每次迭代执行的结果ture或false,分别将其元素放入到返回Array中的第一个元素或第二个元素中</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../net/conic/prototype/Array.html" title="net.conic.prototype 中的类">Array</A></CODE></FONT></TD>
<TD><CODE><B>Enumerable.</B><B><A HREF="../../../../net/conic/prototype/Enumerable.html#reject(net.conic.prototype.Enumerable.Iterator)">reject</A></B>(<A HREF="../../../../net/conic/prototype/Enumerable.Iterator.html" title="net.conic.prototype 中的类">Enumerable.Iterator</A> iterator)</CODE>
<BR>
将每次迭代执行的结果false的元素放入到返回Array中返回,相当于取partition的返回的falses成员</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../net/conic/prototype/Array.html" title="net.conic.prototype 中的类">Array</A></CODE></FONT></TD>
<TD><CODE><B>Enumerable.</B><B><A HREF="../../../../net/conic/prototype/Enumerable.html#select(net.conic.prototype.Enumerable.Iterator)">select</A></B>(<A HREF="../../../../net/conic/prototype/Enumerable.Iterator.html" title="net.conic.prototype 中的类">Enumerable.Iterator</A> iterator)</CODE>
<BR>
等同于findAll()方法</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../net/conic/prototype/Array.html" title="net.conic.prototype 中的类">Array</A></CODE></FONT></TD>
<TD><CODE><B>Enumerable.</B><B><A HREF="../../../../net/conic/prototype/Enumerable.html#sortBy(net.conic.prototype.Enumerable.Iterator)">sortBy</A></B>(<A HREF="../../../../net/conic/prototype/Enumerable.Iterator.html" title="net.conic.prototype 中的类">Enumerable.Iterator</A> iterator)</CODE>
<BR>
根据迭代执行结果的大小顺序,返回元素集合,降序返回。</TD>
</TR>
</TABLE>
<P>
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="跳过导航链接"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../net/conic/prototype/package-summary.html"><FONT CLASS="NavBarFont1"><B>软件包</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../net/conic/prototype/Enumerable.Iterator.html" title="net.conic.prototype 中的类"><FONT CLASS="NavBarFont1"><B>类</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>使用</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>树</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>已过时</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>索引</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>帮助</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
上一个
下一个</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?net/conic/prototype/\class-useEnumerable.Iterator.html" target="_top"><B>框架</B></A>
<A HREF="Enumerable.Iterator.html" target="_top"><B>无框架</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>所有类</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../allclasses-noframe.html"><B>所有类</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -