| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|---|
| 2 | <html> |
|---|
| 3 | <head><title>object Loop in jp.ne.cappuccino.keisuken.scl.lang</title> |
|---|
| 4 | <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"></meta><meta content="scaladoc (version 2.6.1-final)" name="generator"></meta><link href="../../../../../../style.css" type="text/css" rel="stylesheet"></link><script type="text/javascript" src="../../../../../../script.js"></script> |
|---|
| 5 | </head> |
|---|
| 6 | <body onload="init()"> |
|---|
| 7 | <table summary="" class="navigation"> |
|---|
| 8 | <tr> |
|---|
| 9 | <td class="navigation-links" valign="top"> |
|---|
| 10 | <!-- <table><tr></tr></table> --> |
|---|
| 11 | </td> |
|---|
| 12 | <td align="right" valign="top" style="white-space:nowrap;" rowspan="2"> |
|---|
| 13 | <div class="doctitle-larger">Scala 2</div> |
|---|
| 14 | </td> |
|---|
| 15 | </tr> |
|---|
| 16 | <tr><td></td></tr> |
|---|
| 17 | </table> |
|---|
| 18 | |
|---|
| 19 | <div class="entity"> |
|---|
| 20 | <a href="../../../../../../jp/ne/cappuccino/keisuken/scl/lang$package.html" target="_self">jp.ne.cappuccino.keisuken.scl.lang</a> |
|---|
| 21 | <br></br> |
|---|
| 22 | <span class="entity">object Loop</span> |
|---|
| 23 | </div><hr></hr> |
|---|
| 24 | <div class="source"> |
|---|
| 25 | [source: <a href="" class="jp/ne/cappuccino/keisuken/scl/lang/Loop"><code>jp/ne/cappuccino/keisuken/scl/lang/Loop.scala</code></a>] |
|---|
| 26 | </div><hr></hr> |
|---|
| 27 | <a name="Loop"></a><dl> |
|---|
| 28 | <dt> |
|---|
| 29 | |
|---|
| 30 | <code></code> |
|---|
| 31 | <code>object</code> |
|---|
| 32 | <em>Loop</em> |
|---|
| 33 | </dt> |
|---|
| 34 | <dd><code> extends </code><a href="../../../../../../scala/AnyRef.html" target="_self">AnyRef</a></dd> |
|---|
| 35 | </dl> |
|---|
| 36 | <dl><dd>Loop utilities.</dd></dl> |
|---|
| 37 | <dl><dt style="margin:10px 0 0 20px;"> |
|---|
| 38 | <b>Author</b></dt><dd>NISHIMOTO Keisuke.</dd></dl> |
|---|
| 39 | |
|---|
| 40 | |
|---|
| 41 | |
|---|
| 42 | |
|---|
| 43 | <table summary="" cellpadding="3" class="member"> |
|---|
| 44 | <tr><td class="title" colspan="2">Method Summary</td></tr> |
|---|
| 45 | <tr> |
|---|
| 46 | <td class="modifiers" valign="top"> |
|---|
| 47 | <code> def</code> |
|---|
| 48 | </td> |
|---|
| 49 | <td class="signature"> |
|---|
| 50 | <em><a href="../../../../../../jp/ne/cappuccino/keisuken/scl/lang/Loop$object.html#break" target="_self">break</a></em> |
|---|
| 51 | : <a href="../../../../../../scala/Unit.html" target="_self">Unit</a> |
|---|
| 52 | |
|---|
| 53 | |
|---|
| 54 | </td> |
|---|
| 55 | </tr> |
|---|
| 56 | <tr> |
|---|
| 57 | <td class="modifiers" valign="top"> |
|---|
| 58 | <code> def</code> |
|---|
| 59 | </td> |
|---|
| 60 | <td class="signature"> |
|---|
| 61 | <em><a href="../../../../../../jp/ne/cappuccino/keisuken/scl/lang/Loop$object.html#break%28Any%29" target="_self">break</a></em> |
|---|
| 62 | (<em>v</em> : <a href="../../../../../../scala/Any.html" target="_self">Any</a>) : <a href="../../../../../../scala/Unit.html" target="_self">Unit</a> |
|---|
| 63 | |
|---|
| 64 | |
|---|
| 65 | </td> |
|---|
| 66 | </tr> |
|---|
| 67 | <tr> |
|---|
| 68 | <td class="modifiers" valign="top"> |
|---|
| 69 | <code> def</code> |
|---|
| 70 | </td> |
|---|
| 71 | <td class="signature"> |
|---|
| 72 | <em><a href="../../../../../../jp/ne/cappuccino/keisuken/scl/lang/Loop$object.html#doWhileLoop%28%3D%3EBoolean%29" target="_self">doWhileLoop</a></em> |
|---|
| 73 | (<em>cond</em> : => <a href="../../../../../../scala/Boolean.html" target="_self">Boolean</a>)(<em>p</em> : => <a href="../../../../../../scala/Unit.html" target="_self">Unit</a>) : <a href="../../../../../../scala/Unit.html" target="_self">Unit</a> |
|---|
| 74 | |
|---|
| 75 | <div>do while loop.</div> |
|---|
| 76 | </td> |
|---|
| 77 | </tr> |
|---|
| 78 | <tr> |
|---|
| 79 | <td class="modifiers" valign="top"> |
|---|
| 80 | <code> def</code> |
|---|
| 81 | </td> |
|---|
| 82 | <td class="signature"> |
|---|
| 83 | <em><a href="../../../../../../jp/ne/cappuccino/keisuken/scl/lang/Loop$object.html#findDoWhile%28%3D%3EBoolean%29" target="_self">findDoWhile</a></em> |
|---|
| 84 | [<em>A</em>](<em>cond</em> : => <a href="../../../../../../scala/Boolean.html" target="_self">Boolean</a>)(<em>p</em> : => <a href="../../../../../../scala/Unit.html" target="_self">Unit</a>) : <a href="" target="contentFrame" class="scala/Option">scala.Option</a>[<a href="../../../../../../jp/ne/cappuccino/keisuken/scl/lang/Loop$object.html#findDoWhile%28%3D%3EBoolean%29#A" target="_self">A</a>] |
|---|
| 85 | |
|---|
| 86 | <div>find do while loop.</div> |
|---|
| 87 | </td> |
|---|
| 88 | </tr> |
|---|
| 89 | <tr> |
|---|
| 90 | <td class="modifiers" valign="top"> |
|---|
| 91 | <code> def</code> |
|---|
| 92 | </td> |
|---|
| 93 | <td class="signature"> |
|---|
| 94 | <em><a href="../../../../../../jp/ne/cappuccino/keisuken/scl/lang/Loop$object.html#findFor%28Iterable%5BA%5D%29" target="_self">findFor</a></em> |
|---|
| 95 | [<em>A</em>, <em>B</em>](<em>iterable</em> : <a href="" target="contentFrame" class="scala/Iterable">scala.Iterable</a>[<a href="../../../../../../jp/ne/cappuccino/keisuken/scl/lang/Loop$object.html#findFor%28Iterable%5BA%5D%29#A" target="_self">A</a>])(<em>p</em> : (<a href="../../../../../../jp/ne/cappuccino/keisuken/scl/lang/Loop$object.html#findFor%28Iterable%5BA%5D%29#A" target="_self">A</a>) => <a href="../../../../../../scala/Unit.html" target="_self">Unit</a>) : <a href="" target="contentFrame" class="scala/Option">scala.Option</a>[<a href="../../../../../../jp/ne/cappuccino/keisuken/scl/lang/Loop$object.html#findFor%28Iterable%5BA%5D%29#B" target="_self">B</a>] |
|---|
| 96 | |
|---|
| 97 | <div>find for loop.</div> |
|---|
| 98 | </td> |
|---|
| 99 | </tr> |
|---|
| 100 | <tr> |
|---|
| 101 | <td class="modifiers" valign="top"> |
|---|
| 102 | <code> def</code> |
|---|
| 103 | </td> |
|---|
| 104 | <td class="signature"> |
|---|
| 105 | <em><a href="../../../../../../jp/ne/cappuccino/keisuken/scl/lang/Loop$object.html#findFor%28%3D%3EUnit%2C%3D%3EBoolean%2C%3D%3EUnit%29" target="_self">findFor</a></em> |
|---|
| 106 | [<em>A</em>](<em>init</em> : => <a href="../../../../../../scala/Unit.html" target="_self">Unit</a>, <em>cond</em> : => <a href="../../../../../../scala/Boolean.html" target="_self">Boolean</a>, <em>update</em> : => <a href="../../../../../../scala/Unit.html" target="_self">Unit</a>)(<em>p</em> : => <a href="../../../../../../scala/Unit.html" target="_self">Unit</a>) : <a href="" target="contentFrame" class="scala/Option">scala.Option</a>[<a href="../../../../../../jp/ne/cappuccino/keisuken/scl/lang/Loop$object.html#findFor%28%3D%3EUnit%2C%3D%3EBoolean%2C%3D%3EUnit%29#A" target="_self">A</a>] |
|---|
| 107 | |
|---|
| 108 | <div>find for loop.</div> |
|---|
| 109 | </td> |
|---|
| 110 | </tr> |
|---|
| 111 | <tr> |
|---|
| 112 | <td class="modifiers" valign="top"> |
|---|
| 113 | <code> def</code> |
|---|
| 114 | </td> |
|---|
| 115 | <td class="signature"> |
|---|
| 116 | <em><a href="../../../../../../jp/ne/cappuccino/keisuken/scl/lang/Loop$object.html#findForWithIndex%28Iterable%5BA%5D%29" target="_self">findForWithIndex</a></em> |
|---|
| 117 | [<em>A</em>, <em>B</em>](<em>iterable</em> : <a href="" target="contentFrame" class="scala/Iterable">scala.Iterable</a>[<a href="../../../../../../jp/ne/cappuccino/keisuken/scl/lang/Loop$object.html#findForWithIndex%28Iterable%5BA%5D%29#A" target="_self">A</a>])(<em>p</em> : (<a href="../../../../../../jp/ne/cappuccino/keisuken/scl/lang/Loop$object.html#findForWithIndex%28Iterable%5BA%5D%29#A" target="_self">A</a>, <a href="../../../../../../scala/Int.html" target="_self">Int</a>) => <a href="../../../../../../scala/Unit.html" target="_self">Unit</a>) : <a href="" target="contentFrame" class="scala/Option">scala.Option</a>[<a href="../../../../../../jp/ne/cappuccino/keisuken/scl/lang/Loop$object.html#findForWithIndex%28Iterable%5BA%5D%29#B" target="_self">B</a>] |
|---|
| 118 | |
|---|
| 119 | <div>find for loop with index.</div> |
|---|
| 120 | </td> |
|---|
| 121 | </tr> |
|---|
| 122 | <tr> |
|---|
| 123 | <td class="modifiers" valign="top"> |
|---|
| 124 | <code> def</code> |
|---|
| 125 | </td> |
|---|
| 126 | <td class="signature"> |
|---|
| 127 | <em><a href="../../../../../../jp/ne/cappuccino/keisuken/scl/lang/Loop$object.html#findWhile%28%3D%3EBoolean%29" target="_self">findWhile</a></em> |
|---|
| 128 | [<em>A</em>](<em>cond</em> : => <a href="../../../../../../scala/Boolean.html" target="_self">Boolean</a>)(<em>p</em> : => <a href="../../../../../../scala/Unit.html" target="_self">Unit</a>) : <a href="" target="contentFrame" class="scala/Option">scala.Option</a>[<a href="../../../../../../jp/ne/cappuccino/keisuken/scl/lang/Loop$object.html#findWhile%28%3D%3EBoolean%29#A" target="_self">A</a>] |
|---|
| 129 | |
|---|
| 130 | <div>find while loop.</div> |
|---|
| 131 | </td> |
|---|
| 132 | </tr> |
|---|
| 133 | <tr> |
|---|
| 134 | <td class="modifiers" valign="top"> |
|---|
| 135 | <code> def</code> |
|---|
| 136 | </td> |
|---|
| 137 | <td class="signature"> |
|---|
| 138 | <em><a href="../../../../../../jp/ne/cappuccino/keisuken/scl/lang/Loop$object.html#forLoop%28%3D%3EUnit%2C%3D%3EBoolean%2C%3D%3EUnit%29" target="_self">forLoop</a></em> |
|---|
| 139 | (<em>init</em> : => <a href="../../../../../../scala/Unit.html" target="_self">Unit</a>, <em>cond</em> : => <a href="../../../../../../scala/Boolean.html" target="_self">Boolean</a>, <em>update</em> : => <a href="../../../../../../scala/Unit.html" target="_self">Unit</a>)(<em>p</em> : => <a href="../../../../../../scala/Unit.html" target="_self">Unit</a>) : <a href="../../../../../../scala/Unit.html" target="_self">Unit</a> |
|---|
| 140 | |
|---|
| 141 | <div>for loop.</div> |
|---|
| 142 | </td> |
|---|
| 143 | </tr> |
|---|
| 144 | <tr> |
|---|
| 145 | <td class="modifiers" valign="top"> |
|---|
| 146 | <code> def</code> |
|---|
| 147 | </td> |
|---|
| 148 | <td class="signature"> |
|---|
| 149 | <em><a href="../../../../../../jp/ne/cappuccino/keisuken/scl/lang/Loop$object.html#forLoop%28Iterable%5BA%5D%29" target="_self">forLoop</a></em> |
|---|
| 150 | [<em>A</em>](<em>iterable</em> : <a href="" target="contentFrame" class="scala/Iterable">scala.Iterable</a>[<a href="../../../../../../jp/ne/cappuccino/keisuken/scl/lang/Loop$object.html#forLoop%28Iterable%5BA%5D%29#A" target="_self">A</a>])(<em>p</em> : (<a href="../../../../../../jp/ne/cappuccino/keisuken/scl/lang/Loop$object.html#forLoop%28Iterable%5BA%5D%29#A" target="_self">A</a>) => <a href="../../../../../../scala/Unit.html" target="_self">Unit</a>) : <a href="../../../../../../scala/Unit.html" target="_self">Unit</a> |
|---|
| 151 | |
|---|
| 152 | <div>for loop.</div> |
|---|
| 153 | </td> |
|---|
| 154 | </tr> |
|---|
| 155 | <tr> |
|---|
| 156 | <td class="modifiers" valign="top"> |
|---|
| 157 | <code> def</code> |
|---|
| 158 | </td> |
|---|
| 159 | <td class="signature"> |
|---|
| 160 | <em><a href="../../../../../../jp/ne/cappuccino/keisuken/scl/lang/Loop$object.html#forLoopWithIndex%28Iterable%5BA%5D%29" target="_self">forLoopWithIndex</a></em> |
|---|
| 161 | [<em>A</em>](<em>iterable</em> : <a href="" target="contentFrame" class="scala/Iterable">scala.Iterable</a>[<a href="../../../../../../jp/ne/cappuccino/keisuken/scl/lang/Loop$object.html#forLoopWithIndex%28Iterable%5BA%5D%29#A" target="_self">A</a>])(<em>p</em> : (<a href="../../../../../../jp/ne/cappuccino/keisuken/scl/lang/Loop$object.html#forLoopWithIndex%28Iterable%5BA%5D%29#A" target="_self">A</a>, <a href="../../../../../../scala/Int.html" target="_self">Int</a>) => <a href="../../../../../../scala/Unit.html" target="_self">Unit</a>) : <a href="../../../../../../scala/Unit.html" target="_self">Unit</a> |
|---|
| 162 | |
|---|
| 163 | <div>for loop with index.</div> |
|---|
| 164 | </td> |
|---|
| 165 | </tr> |
|---|
| 166 | <tr> |
|---|
| 167 | <td class="modifiers" valign="top"> |
|---|
| 168 | <code> def</code> |
|---|
| 169 | </td> |
|---|
| 170 | <td class="signature"> |
|---|
| 171 | <em><a href="../../../../../../jp/ne/cappuccino/keisuken/scl/lang/Loop$object.html#main%28Array%5BString%5D%29" target="_self">main</a></em> |
|---|
| 172 | (<em>args</em> : <a href="" target="contentFrame" class="scala/Array">scala.Array</a>[<a href="" target="contentFrame" class="java/lang/String">java.lang.String</a>]) : <a href="../../../../../../scala/Unit.html" target="_self">Unit</a> |
|---|
| 173 | |
|---|
| 174 | <div>Sample loop codes.</div> |
|---|
| 175 | </td> |
|---|
| 176 | </tr> |
|---|
| 177 | <tr> |
|---|
| 178 | <td class="modifiers" valign="top"> |
|---|
| 179 | <code> def</code> |
|---|
| 180 | </td> |
|---|
| 181 | <td class="signature"> |
|---|
| 182 | <em><a href="../../../../../../jp/ne/cappuccino/keisuken/scl/lang/Loop$object.html#whileLoop%28%3D%3EBoolean%29" target="_self">whileLoop</a></em> |
|---|
| 183 | (<em>cond</em> : => <a href="../../../../../../scala/Boolean.html" target="_self">Boolean</a>)(<em>p</em> : => <a href="../../../../../../scala/Unit.html" target="_self">Unit</a>) : <a href="../../../../../../scala/Unit.html" target="_self">Unit</a> |
|---|
| 184 | |
|---|
| 185 | <div>while loop.</div> |
|---|
| 186 | </td> |
|---|
| 187 | </tr> |
|---|
| 188 | </table><table summary="" cellpadding="3" class="inherited"> |
|---|
| 189 | <tr><td class="title" colspan="2"> |
|---|
| 190 | Methods inherited from <a href="../../../../../../scala/AnyRef.html" target="_self">AnyRef</a> |
|---|
| 191 | </td></tr> |
|---|
| 192 | <tr><td class="signature" colspan="2"> |
|---|
| 193 | <a href="../../../../../../scala/AnyRef.html#getClass%28%29" target="_self">getClass</a>, <a href="../../../../../../scala/AnyRef.html#hashCode%28%29" target="_self">hashCode</a>, <a href="../../../../../../scala/AnyRef.html#equals%28Any%29" target="_self">equals</a>, <a href="../../../../../../scala/AnyRef.html#clone%28%29" target="_self">clone</a>, <a href="../../../../../../scala/AnyRef.html#toString%28%29" target="_self">toString</a>, <a href="../../../../../../scala/AnyRef.html#notify%28%29" target="_self">notify</a>, <a href="../../../../../../scala/AnyRef.html#notifyAll%28%29" target="_self">notifyAll</a>, <a href="../../../../../../scala/AnyRef.html#wait%28Long%29" target="_self">wait</a>, <a href="../../../../../../scala/AnyRef.html#wait%28Long%2CInt%29" target="_self">wait</a>, <a href="../../../../../../scala/AnyRef.html#wait%28%29" target="_self">wait</a>, <a href="../../../../../../scala/AnyRef.html#finalize%28%29" target="_self">finalize</a>, <a href="../../../../../../scala/AnyRef.html#%3D%3D%28AnyRef%29" target="_self">==</a>, <a href="../../../../../../scala/AnyRef.html#%21%3D%28AnyRef%29" target="_self">!=</a>, <a href="../../../../../../scala/AnyRef.html#eq%28AnyRef%29" target="_self">eq</a>, <a href="../../../../../../scala/AnyRef.html#ne%28AnyRef%29" target="_self">ne</a>, <a href="../../../../../../scala/AnyRef.html#synchronized%28T0%29" target="_self">synchronized</a> |
|---|
| 194 | </td></tr> |
|---|
| 195 | </table><table summary="" cellpadding="3" class="inherited"> |
|---|
| 196 | <tr><td class="title" colspan="2"> |
|---|
| 197 | Methods inherited from <a href="../../../../../../scala/Any.html" target="_self">Any</a> |
|---|
| 198 | </td></tr> |
|---|
| 199 | <tr><td class="signature" colspan="2"> |
|---|
| 200 | <a href="../../../../../../scala/Any.html#%3D%3D%28Any%29" target="_self">==</a>, <a href="../../../../../../scala/Any.html#%21%3D%28Any%29" target="_self">!=</a>, <a href="../../../../../../scala/Any.html#isInstanceOf" target="_self">isInstanceOf</a>, <a href="../../../../../../scala/Any.html#asInstanceOf" target="_self">asInstanceOf</a> |
|---|
| 201 | </td></tr> |
|---|
| 202 | </table> |
|---|
| 203 | <table summary="" cellpadding="3" class="member"> |
|---|
| 204 | <tr><td class="title" colspan="2">Class Summary</td></tr> |
|---|
| 205 | <tr> |
|---|
| 206 | <td class="modifiers" valign="top"> |
|---|
| 207 | <code> class</code> |
|---|
| 208 | </td> |
|---|
| 209 | <td class="signature"> |
|---|
| 210 | <em><a href="../../../../../../jp/ne/cappuccino/keisuken/scl/lang/Loop$object.LoopStat.html" target="_self">LoopStat</a></em> |
|---|
| 211 | (<code>val </code><em>cond</em> : <a href="../../../../../../scala/Boolean.html" target="_self">Boolean</a>, <code>val </code><em>result</em> : <a href="../../../../../../scala/Any.html" target="_self">Any</a>)<code> extends </code><a href="../../../../../../scala/AnyRef.html" target="_self">AnyRef</a> |
|---|
| 212 | |
|---|
| 213 | |
|---|
| 214 | </td> |
|---|
| 215 | </tr> |
|---|
| 216 | </table> |
|---|
| 217 | |
|---|
| 218 | |
|---|
| 219 | |
|---|
| 220 | |
|---|
| 221 | <table summary="" cellpadding="3" class="member-detail"> |
|---|
| 222 | <tr><td class="title">Method Details</td></tr> |
|---|
| 223 | </table><div><a name="break"></a><dl> |
|---|
| 224 | <dt> |
|---|
| 225 | |
|---|
| 226 | <code></code> |
|---|
| 227 | <code>def</code> |
|---|
| 228 | <em>break</em> : <a href="../../../../../../scala/Unit.html" target="_self">Unit</a> |
|---|
| 229 | </dt> |
|---|
| 230 | <dd></dd> |
|---|
| 231 | </dl><hr></hr> |
|---|
| 232 | <a name="break%28Any%29"></a><dl> |
|---|
| 233 | <dt> |
|---|
| 234 | |
|---|
| 235 | <code></code> |
|---|
| 236 | <code>def</code> |
|---|
| 237 | <em>break</em>(<em>v</em> : <a href="../../../../../../scala/Any.html" target="_self">Any</a>) : <a href="../../../../../../scala/Unit.html" target="_self">Unit</a> |
|---|
| 238 | </dt> |
|---|
| 239 | <dd></dd> |
|---|
| 240 | </dl><hr></hr> |
|---|
| 241 | <a name="forLoop%28%3D%3EUnit%2C%3D%3EBoolean%2C%3D%3EUnit%29"></a><dl> |
|---|
| 242 | <dt> |
|---|
| 243 | |
|---|
| 244 | <code></code> |
|---|
| 245 | <code>def</code> |
|---|
| 246 | <em>forLoop</em>(<em>init</em> : => <a href="../../../../../../scala/Unit.html" target="_self">Unit</a>, <em>cond</em> : => <a href="../../../../../../scala/Boolean.html" target="_self">Boolean</a>, <em>update</em> : => <a href="../../../../../../scala/Unit.html" target="_self">Unit</a>)(<em>p</em> : => <a href="../../../../../../scala/Unit.html" target="_self">Unit</a>) : <a href="../../../../../../scala/Unit.html" target="_self">Unit</a> |
|---|
| 247 | </dt> |
|---|
| 248 | <dd></dd> |
|---|
| 249 | </dl> |
|---|
| 250 | <dl><dd>for loop.</dd></dl> |
|---|
| 251 | <dl><dt style="margin:10px 0 0 20px;"> |
|---|
| 252 | <b>Parameters</b></dt><dd><code>init - </code>initialize proc.</dd><dd><code>cond - </code>condition proc.</dd><dd><code>update - </code>condition update proc.</dd></dl> |
|---|
| 253 | <hr></hr> |
|---|
| 254 | <a name="forLoop%28Iterable%5BA%5D%29"></a><dl> |
|---|
| 255 | <dt> |
|---|
| 256 | |
|---|
| 257 | <code></code> |
|---|
| 258 | <code>def</code> |
|---|
| 259 | <em>forLoop</em>[<em>A</em>](<em>iterable</em> : <a href="" target="contentFrame" class="scala/Iterable">scala.Iterable</a>[<a href="../../../../../../jp/ne/cappuccino/keisuken/scl/lang/Loop$object.html#forLoop%28Iterable%5BA%5D%29#A" target="_self">A</a>])(<em>p</em> : (<a href="../../../../../../jp/ne/cappuccino/keisuken/scl/lang/Loop$object.html#forLoop%28Iterable%5BA%5D%29#A" target="_self">A</a>) => <a href="../../../../../../scala/Unit.html" target="_self">Unit</a>) : <a href="../../../../../../scala/Unit.html" target="_self">Unit</a> |
|---|
| 260 | </dt> |
|---|
| 261 | <dd></dd> |
|---|
| 262 | </dl> |
|---|
| 263 | <dl><dd>for loop.</dd></dl> |
|---|
| 264 | <dl><dt style="margin:10px 0 0 20px;"> |
|---|
| 265 | <b>Parameters</b></dt><dd><code>iterable - </code>loop iterable.</dd></dl> |
|---|
| 266 | <hr></hr> |
|---|
| 267 | <a name="forLoopWithIndex%28Iterable%5BA%5D%29"></a><dl> |
|---|
| 268 | <dt> |
|---|
| 269 | |
|---|
| 270 | <code></code> |
|---|
| 271 | <code>def</code> |
|---|
| 272 | <em>forLoopWithIndex</em>[<em>A</em>](<em>iterable</em> : <a href="" target="contentFrame" class="scala/Iterable">scala.Iterable</a>[<a href="../../../../../../jp/ne/cappuccino/keisuken/scl/lang/Loop$object.html#forLoopWithIndex%28Iterable%5BA%5D%29#A" target="_self">A</a>])(<em>p</em> : (<a href="../../../../../../jp/ne/cappuccino/keisuken/scl/lang/Loop$object.html#forLoopWithIndex%28Iterable%5BA%5D%29#A" target="_self">A</a>, <a href="../../../../../../scala/Int.html" target="_self">Int</a>) => <a href="../../../../../../scala/Unit.html" target="_self">Unit</a>) : <a href="../../../../../../scala/Unit.html" target="_self">Unit</a> |
|---|
| 273 | </dt> |
|---|
| 274 | <dd></dd> |
|---|
| 275 | </dl> |
|---|
| 276 | <dl><dd>for loop with index.</dd></dl> |
|---|
| 277 | <dl><dt style="margin:10px 0 0 20px;"> |
|---|
| 278 | <b>Parameters</b></dt><dd><code>iterable - </code>loop iterable.</dd></dl> |
|---|
| 279 | <hr></hr> |
|---|
| 280 | <a name="findFor%28%3D%3EUnit%2C%3D%3EBoolean%2C%3D%3EUnit%29"></a><dl> |
|---|
| 281 | <dt> |
|---|
| 282 | |
|---|
| 283 | <code></code> |
|---|
| 284 | <code>def</code> |
|---|
| 285 | <em>findFor</em>[<em>A</em>](<em>init</em> : => <a href="../../../../../../scala/Unit.html" target="_self">Unit</a>, <em>cond</em> : => <a href="../../../../../../scala/Boolean.html" target="_self">Boolean</a>, <em>update</em> : => <a href="../../../../../../scala/Unit.html" target="_self">Unit</a>)(<em>p</em> : => <a href="../../../../../../scala/Unit.html" target="_self">Unit</a>) : <a href="" target="contentFrame" class="scala/Option">scala.Option</a>[<a href="../../../../../../jp/ne/cappuccino/keisuken/scl/lang/Loop$object.html#findFor%28%3D%3EUnit%2C%3D%3EBoolean%2C%3D%3EUnit%29#A" target="_self">A</a>] |
|---|
| 286 | </dt> |
|---|
| 287 | <dd></dd> |
|---|
| 288 | </dl> |
|---|
| 289 | <dl><dd>find for loop.</dd></dl> |
|---|
| 290 | <dl><dt style="margin:10px 0 0 20px;"> |
|---|
| 291 | <b>Parameters</b></dt><dd><code>init - </code>initialize proc.</dd><dd><code>cond - </code>condition proc.</dd><dd><code>update - </code>condition update proc.</dd><dt style="margin:10px 0 0 20px;"> |
|---|
| 292 | <b>Returns</b></dt><dd>result of find.</dd></dl> |
|---|
| 293 | <hr></hr> |
|---|
| 294 | <a name="findFor%28Iterable%5BA%5D%29"></a><dl> |
|---|
| 295 | <dt> |
|---|
| 296 | |
|---|
| 297 | <code></code> |
|---|
| 298 | <code>def</code> |
|---|
| 299 | <em>findFor</em>[<em>A</em>, <em>B</em>](<em>iterable</em> : <a href="" target="contentFrame" class="scala/Iterable">scala.Iterable</a>[<a href="../../../../../../jp/ne/cappuccino/keisuken/scl/lang/Loop$object.html#findFor%28Iterable%5BA%5D%29#A" target="_self">A</a>])(<em>p</em> : (<a href="../../../../../../jp/ne/cappuccino/keisuken/scl/lang/Loop$object.html#findFor%28Iterable%5BA%5D%29#A" target="_self">A</a>) => <a href="../../../../../../scala/Unit.html" target="_self">Unit</a>) : <a href="" target="contentFrame" class="scala/Option">scala.Option</a>[<a href="../../../../../../jp/ne/cappuccino/keisuken/scl/lang/Loop$object.html#findFor%28Iterable%5BA%5D%29#B" target="_self">B</a>] |
|---|
| 300 | </dt> |
|---|
| 301 | <dd></dd> |
|---|
| 302 | </dl> |
|---|
| 303 | <dl><dd>find for loop.</dd></dl> |
|---|
| 304 | <dl><dt style="margin:10px 0 0 20px;"> |
|---|
| 305 | <b>Parameters</b></dt><dd><code>iterable - </code>loop iterable.</dd><dt style="margin:10px 0 0 20px;"> |
|---|
| 306 | <b>Returns</b></dt><dd>result of find.</dd></dl> |
|---|
| 307 | <hr></hr> |
|---|
| 308 | <a name="findForWithIndex%28Iterable%5BA%5D%29"></a><dl> |
|---|
| 309 | <dt> |
|---|
| 310 | |
|---|
| 311 | <code></code> |
|---|
| 312 | <code>def</code> |
|---|
| 313 | <em>findForWithIndex</em>[<em>A</em>, <em>B</em>](<em>iterable</em> : <a href="" target="contentFrame" class="scala/Iterable">scala.Iterable</a>[<a href="../../../../../../jp/ne/cappuccino/keisuken/scl/lang/Loop$object.html#findForWithIndex%28Iterable%5BA%5D%29#A" target="_self">A</a>])(<em>p</em> : (<a href="../../../../../../jp/ne/cappuccino/keisuken/scl/lang/Loop$object.html#findForWithIndex%28Iterable%5BA%5D%29#A" target="_self">A</a>, <a href="../../../../../../scala/Int.html" target="_self">Int</a>) => <a href="../../../../../../scala/Unit.html" target="_self">Unit</a>) : <a href="" target="contentFrame" class="scala/Option">scala.Option</a>[<a href="../../../../../../jp/ne/cappuccino/keisuken/scl/lang/Loop$object.html#findForWithIndex%28Iterable%5BA%5D%29#B" target="_self">B</a>] |
|---|
| 314 | </dt> |
|---|
| 315 | <dd></dd> |
|---|
| 316 | </dl> |
|---|
| 317 | <dl><dd>find for loop with index.</dd></dl> |
|---|
| 318 | <dl><dt style="margin:10px 0 0 20px;"> |
|---|
| 319 | <b>Parameters</b></dt><dd><code>iterable - </code>loop iterable.</dd><dt style="margin:10px 0 0 20px;"> |
|---|
| 320 | <b>Returns</b></dt><dd>result of find.</dd></dl> |
|---|
| 321 | <hr></hr> |
|---|
| 322 | <a name="whileLoop%28%3D%3EBoolean%29"></a><dl> |
|---|
| 323 | <dt> |
|---|
| 324 | |
|---|
| 325 | <code></code> |
|---|
| 326 | <code>def</code> |
|---|
| 327 | <em>whileLoop</em>(<em>cond</em> : => <a href="../../../../../../scala/Boolean.html" target="_self">Boolean</a>)(<em>p</em> : => <a href="../../../../../../scala/Unit.html" target="_self">Unit</a>) : <a href="../../../../../../scala/Unit.html" target="_self">Unit</a> |
|---|
| 328 | </dt> |
|---|
| 329 | <dd></dd> |
|---|
| 330 | </dl> |
|---|
| 331 | <dl><dd>while loop.</dd></dl> |
|---|
| 332 | <dl><dt style="margin:10px 0 0 20px;"> |
|---|
| 333 | <b>Parameters</b></dt><dd><code>cond - </code>condition proc.</dd></dl> |
|---|
| 334 | <hr></hr> |
|---|
| 335 | <a name="findWhile%28%3D%3EBoolean%29"></a><dl> |
|---|
| 336 | <dt> |
|---|
| 337 | |
|---|
| 338 | <code></code> |
|---|
| 339 | <code>def</code> |
|---|
| 340 | <em>findWhile</em>[<em>A</em>](<em>cond</em> : => <a href="../../../../../../scala/Boolean.html" target="_self">Boolean</a>)(<em>p</em> : => <a href="../../../../../../scala/Unit.html" target="_self">Unit</a>) : <a href="" target="contentFrame" class="scala/Option">scala.Option</a>[<a href="../../../../../../jp/ne/cappuccino/keisuken/scl/lang/Loop$object.html#findWhile%28%3D%3EBoolean%29#A" target="_self">A</a>] |
|---|
| 341 | </dt> |
|---|
| 342 | <dd></dd> |
|---|
| 343 | </dl> |
|---|
| 344 | <dl><dd>find while loop.</dd></dl> |
|---|
| 345 | <dl><dt style="margin:10px 0 0 20px;"> |
|---|
| 346 | <b>Parameters</b></dt><dd><code>cond - </code>condition proc.</dd><dt style="margin:10px 0 0 20px;"> |
|---|
| 347 | <b>Returns</b></dt><dd>result of find.</dd></dl> |
|---|
| 348 | <hr></hr> |
|---|
| 349 | <a name="doWhileLoop%28%3D%3EBoolean%29"></a><dl> |
|---|
| 350 | <dt> |
|---|
| 351 | |
|---|
| 352 | <code></code> |
|---|
| 353 | <code>def</code> |
|---|
| 354 | <em>doWhileLoop</em>(<em>cond</em> : => <a href="../../../../../../scala/Boolean.html" target="_self">Boolean</a>)(<em>p</em> : => <a href="../../../../../../scala/Unit.html" target="_self">Unit</a>) : <a href="../../../../../../scala/Unit.html" target="_self">Unit</a> |
|---|
| 355 | </dt> |
|---|
| 356 | <dd></dd> |
|---|
| 357 | </dl> |
|---|
| 358 | <dl><dd>do while loop.</dd></dl> |
|---|
| 359 | <dl><dt style="margin:10px 0 0 20px;"> |
|---|
| 360 | <b>Parameters</b></dt><dd><code>cond - </code>condition proc.</dd></dl> |
|---|
| 361 | <hr></hr> |
|---|
| 362 | <a name="findDoWhile%28%3D%3EBoolean%29"></a><dl> |
|---|
| 363 | <dt> |
|---|
| 364 | |
|---|
| 365 | <code></code> |
|---|
| 366 | <code>def</code> |
|---|
| 367 | <em>findDoWhile</em>[<em>A</em>](<em>cond</em> : => <a href="../../../../../../scala/Boolean.html" target="_self">Boolean</a>)(<em>p</em> : => <a href="../../../../../../scala/Unit.html" target="_self">Unit</a>) : <a href="" target="contentFrame" class="scala/Option">scala.Option</a>[<a href="../../../../../../jp/ne/cappuccino/keisuken/scl/lang/Loop$object.html#findDoWhile%28%3D%3EBoolean%29#A" target="_self">A</a>] |
|---|
| 368 | </dt> |
|---|
| 369 | <dd></dd> |
|---|
| 370 | </dl> |
|---|
| 371 | <dl><dd>find do while loop.</dd></dl> |
|---|
| 372 | <dl><dt style="margin:10px 0 0 20px;"> |
|---|
| 373 | <b>Parameters</b></dt><dd><code>cond - </code>condition proc.</dd><dt style="margin:10px 0 0 20px;"> |
|---|
| 374 | <b>Returns</b></dt><dd>result of find.</dd></dl> |
|---|
| 375 | <hr></hr> |
|---|
| 376 | <a name="main%28Array%5BString%5D%29"></a><dl> |
|---|
| 377 | <dt> |
|---|
| 378 | |
|---|
| 379 | <code></code> |
|---|
| 380 | <code>def</code> |
|---|
| 381 | <em>main</em>(<em>args</em> : <a href="" target="contentFrame" class="scala/Array">scala.Array</a>[<a href="" target="contentFrame" class="java/lang/String">java.lang.String</a>]) : <a href="../../../../../../scala/Unit.html" target="_self">Unit</a> |
|---|
| 382 | </dt> |
|---|
| 383 | <dd></dd> |
|---|
| 384 | </dl> |
|---|
| 385 | <dl><dd>Sample loop codes.</dd></dl> |
|---|
| 386 | <dl></dl> |
|---|
| 387 | <hr></hr></div> |
|---|
| 388 | |
|---|
| 389 | |
|---|
| 390 | <hr></hr> |
|---|
| 391 | <table summary="" class="navigation"> |
|---|
| 392 | <tr> |
|---|
| 393 | <td class="navigation-links" valign="top"> |
|---|
| 394 | <!-- <table><tr></tr></table> --> |
|---|
| 395 | </td> |
|---|
| 396 | <td align="right" valign="top" style="white-space:nowrap;" rowspan="2"> |
|---|
| 397 | <div class="doctitle-larger">Scala 2</div> |
|---|
| 398 | </td> |
|---|
| 399 | </tr> |
|---|
| 400 | <tr><td></td></tr> |
|---|
| 401 | </table> |
|---|
| 402 | </body> |
|---|
| 403 | </html> |
|---|