1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387
|
<!DOCTYPE HTML SYSTEM>
<!-- Generated by Lisaac shorter / html style -->
<html>
<head>
<title>
Lisaac prototype interface
</title>
</head>
<body BGCOLOR="#FFFFFF">
<br><br><strong><font color="#A020F0">Section</font></strong> <strong><font color="#A020F0">Header</font></strong>
<br><br><strong><font color="#FF0000">    +</font></strong> <strong><font color="#0000FF">name</font></strong> := <a href="COLLECTION.html"><font color="#008000">COLLECTION</font></a>[<font color="#008000">E</font>];
<br><br><strong><font color="#FF0000">    -</font></strong> <strong><font color="#0000FF">comment</font></strong> := <font color="#BC8F8F">"Common abstract definition of a sequenceable collection of objects."</font>;
<br><font FACE="Sans-serif" color="#000000"><B> Such a collection is traversable using a simple INTEGER index from `lower' </B></font>
<br><font FACE="Sans-serif" color="#000000"><B> to `upper' using `item'. All COLLECTIONs are resizable thanks to </B></font>
<br><font FACE="Sans-serif" color="#000000"><B> `add_last' / `remove_last', `add_first' / `remove_first' as well as </B></font>
<br><font FACE="Sans-serif" color="#000000"><B> `add' / `remove' .</B></font>
<br><font FACE="Sans-serif" color="#000000"><B></B></font>
<br><font FACE="Sans-serif" color="#000000"><B> This abstraction provides feature to view a COLLECTION as a stack </B></font>
<br><font FACE="Sans-serif" color="#000000"><B> (as an example by using `add_last', `last', and `remove_last'). </B></font>
<br><font FACE="Sans-serif" color="#000000"><B> One can also use a COLLECTION as a queue (as an example, by using</B></font>
<br><font FACE="Sans-serif" color="#000000"><B> `add_last', `first' and `remove_first'). </B></font>
<br><font FACE="Sans-serif" color="#000000"><B></B></font>
<br><font FACE="Sans-serif" color="#000000"><B> The Lisaac standard library provides five implementations of COLLECTION: </B></font>
<br><font FACE="Sans-serif" color="#000000"><B> ARRAY, FAST_ARRAY, LINKED_LIST and LINKED2_LIST. Except for creations all </B></font>
<br><font FACE="Sans-serif" color="#000000"><B> implementations have exactly the same behavior. Switching from one </B></font>
<br><font FACE="Sans-serif" color="#000000"><B> implementation to another only change the memory used and the execution </B></font>
<br><font FACE="Sans-serif" color="#000000"><B> time (see header comment of ARRAY, FAST_ARRAY, LINKED_LIST and LINKED2_LIST </B></font>
<br><font FACE="Sans-serif" color="#000000"><B> for more details).</B></font>
<br><br><strong><font color="#A020F0">Section</font></strong> <strong><font color="#A020F0">Inherit</font></strong>
<br><font FACE="Sans-serif" color="#000000"><B> - parent_storage:STORAGE := STORAGE;</B></font>
<br><br><strong><font color="#FF0000">    -</font></strong> <strong><font color="#0000FF">parent_traversable</font></strong>:<a href="TRAVERSABLE.html"><font color="#008000">TRAVERSABLE</font></a>[<font color="#008000">E</font>] :=
<br><br><strong><font color="#A020F0">Section</font></strong> <strong><font color="#A020F0">Public</font></strong>
<br><font FACE="Sans-serif" color="#000000"><B></B></font>
<br><font FACE="Sans-serif" color="#000000"><B> Accessing:</B></font>
<br><font FACE="Sans-serif" color="#000000"><B></B></font>
<br><br><strong><font color="#FF0000">    -</font></strong> <strong><font color="#0000FF">item</font></strong> i:<a href="INTEGER.html"><font color="#008000">INTEGER</font></a> :<font color="#008000">E</font> <-
<br><em><strong><font color="#707070">        Item at the corresponding index `i'.</font></strong></em>
<br><em><strong><font color="#707070">        </font></strong></em>
<br><em><strong><font color="#707070">        See also `lower', `upper', `valid_index', `put', `swap'.</font></strong></em>
<br><font FACE="Sans-serif" color="#000000"><B></B></font>
<br><font FACE="Sans-serif" color="#000000"><B> Writing:</B></font>
<br><font FACE="Sans-serif" color="#000000"><B></B></font>
<br><br><strong><font color="#FF0000">    -</font></strong> <strong><font color="#0000FF">put</font></strong> element:<font color="#008000">E</font> <strong><font color="#0000FF">to</font></strong> i:<a href="INTEGER.html"><font color="#008000">INTEGER</font></a> <-
<br><em><strong><font color="#707070">        Make `element' the item at index `i'.</font></strong></em>
<br><em><strong><font color="#707070">        </font></strong></em>
<br><em><strong><font color="#707070">        See also `lower', `upper', `valid_index', `item', `swap', `force'.</font></strong></em>
<br><br><strong><font color="#FF0000">    -</font></strong> <strong><font color="#0000FF">swap</font></strong> i1:<a href="INTEGER.html"><font color="#008000">INTEGER</font></a> <strong><font color="#0000FF">with</font></strong> i2:<a href="INTEGER.html"><font color="#008000">INTEGER</font></a> <-
<br><em><strong><font color="#707070">        Swap item at index `i1' with item at index `i2'.</font></strong></em>
<br><em><strong><font color="#707070">        </font></strong></em>
<br><em><strong><font color="#707070">        See also `item', `put'.</font></strong></em>
<br><br><strong><font color="#FF0000">    -</font></strong> <strong><font color="#0000FF">set_all_with</font></strong> v:<font color="#008000">E</font> <-
<br><em><strong><font color="#707070">        Set all items with value `v'.</font></strong></em>
<br><em><strong><font color="#707070">        </font></strong></em>
<br><em><strong><font color="#707070">        See also `set_slice_with'.</font></strong></em>
<br><br><strong><font color="#FF0000">    -</font></strong> <strong><font color="#0000FF">set_slice</font></strong> lower_index:<a href="INTEGER.html"><font color="#008000">INTEGER</font></a> <strong><font color="#0000FF">to</font></strong> upper_index:<a href="INTEGER.html"><font color="#008000">INTEGER</font></a> <strong><font color="#0000FF">with</font></strong> v:<font color="#008000">E</font> <-
<br><em><strong><font color="#707070">        Set all items in range [`lower_index' .. `upper_index'] with `v'.</font></strong></em>
<br><em><strong><font color="#707070">        </font></strong></em>
<br><em><strong><font color="#707070">        See also `set_all_with'.</font></strong></em>
<br><br><strong><font color="#FF0000">    -</font></strong> <strong><font color="#0000FF">clear_all</font></strong> <-
<br><em><strong><font color="#707070">        Set every item to its default value.</font></strong></em>
<br><em><strong><font color="#707070">        The `count' is not affected </font></strong></em>
<br><em><strong><font color="#707070">        </font></strong></em>
<br><em><strong><font color="#707070">        see also `clear', `all_default'.</font></strong></em>
<br><font FACE="Sans-serif" color="#000000"><B></B></font>
<br><font FACE="Sans-serif" color="#000000"><B> Adding:</B></font>
<br><font FACE="Sans-serif" color="#000000"><B></B></font>
<br><br><strong><font color="#FF0000">    -</font></strong> <strong><font color="#0000FF">add_first</font></strong> element:<font color="#008000">E</font> <-
<br><em><strong><font color="#707070">        Add a new item in first position : `count' is increased by</font></strong></em>
<br><em><strong><font color="#707070">        one and all other items are shifted right.</font></strong></em>
<br><em><strong><font color="#707070">        </font></strong></em>
<br><em><strong><font color="#707070">        See also `add_last', `first', `last', `add'.</font></strong></em>
<br><br><strong><font color="#FF0000">    -</font></strong> <strong><font color="#0000FF">add_last</font></strong> element:<font color="#008000">E</font> <-
<br><em><strong><font color="#707070">        Add a new item at the end : `count' is increased by one.</font></strong></em>
<br><em><strong><font color="#707070">        </font></strong></em>
<br><em><strong><font color="#707070">        See also `add_first', `last', `first', `add'.</font></strong></em>
<br><br><strong><font color="#FF0000">    -</font></strong> <strong><font color="#0000FF">add</font></strong> element:<font color="#008000">E</font> <strong><font color="#0000FF">to</font></strong> index:<a href="INTEGER.html"><font color="#008000">INTEGER</font></a> <-
<br><em><strong><font color="#707070">        Add a new `element' at rank `index' : `count' is increased</font></strong></em>
<br><em><strong><font color="#707070">        by one and range [`index' .. `upper'] is shifted right</font></strong></em>
<br><em><strong><font color="#707070">        by one position.</font></strong></em>
<br><em><strong><font color="#707070">        </font></strong></em>
<br><em><strong><font color="#707070">        See also `add_first', `add_last', `append_collection'.</font></strong></em>
<br><br><strong><font color="#FF0000">    -</font></strong> <strong><font color="#0000FF">append_collection</font></strong> other:<a href="COLLECTION.html"><font color="#008000">COLLECTION</font></a>[<font color="#008000">E</font>] <-
<br><em><strong><font color="#707070">        Append `other' to Current.</font></strong></em>
<br><em><strong><font color="#707070">        </font></strong></em>
<br><em><strong><font color="#707070">        See also `add_last', `add_first', `add'.</font></strong></em>
<br><font FACE="Sans-serif" color="#000000"><B></B></font>
<br><font FACE="Sans-serif" color="#000000"><B> Modification:</B></font>
<br><font FACE="Sans-serif" color="#000000"><B></B></font>
<br><br><strong><font color="#FF0000">    -</font></strong> <strong><font color="#0000FF">force</font></strong> element:<font color="#008000">E</font> <strong><font color="#0000FF">to</font></strong> index:<a href="INTEGER.html"><font color="#008000">INTEGER</font></a> <-
<br><em><strong><font color="#707070">        Make `element' the item at `index', enlarging the collection if</font></strong></em>
<br><em><strong><font color="#707070">        necessary (new bounds except `index' are initialized with</font></strong></em>
<br><em><strong><font color="#707070">        default values).</font></strong></em>
<br><em><strong><font color="#707070">        </font></strong></em>
<br><em><strong><font color="#707070">        See also `put', `item', `swap'.</font></strong></em>
<br><br><strong><font color="#FF0000">    -</font></strong> <strong><font color="#0000FF">copy</font></strong> other:<font color="#008000">SELF</font> <-
<br><em><strong><font color="#707070">        Reinitialize by copying all the items of `other'.</font></strong></em>
<br><br><strong><font color="#FF0000">    -</font></strong> <strong><font color="#0000FF">from_collection</font></strong> model:<a href="COLLECTION.html"><font color="#008000">COLLECTION</font></a>[<font color="#008000">E</font>] <-
<br><em><strong><font color="#707070">        Initialize the current object with the contents of `model'.</font></strong></em>
<br><font FACE="Sans-serif" color="#000000"><B></B></font>
<br><font FACE="Sans-serif" color="#000000"><B> Removing:</B></font>
<br><font FACE="Sans-serif" color="#000000"><B></B></font>
<br><br><strong><font color="#FF0000">    -</font></strong> <strong><font color="#0000FF">remove_first</font></strong> <-
<br><em><strong><font color="#707070">        Remove the `first' element of the collection.</font></strong></em>
<br><em><strong><font color="#707070">        </font></strong></em>
<br><em><strong><font color="#707070">        See also `remove_last', `remove', `remove_head'.</font></strong></em>
<br><br><strong><font color="#FF0000">    -</font></strong> <strong><font color="#0000FF">remove_head</font></strong> n:<a href="INTEGER.html"><font color="#008000">INTEGER</font></a> <-
<br><em><strong><font color="#707070">        Remove the `n' elements of the collection.</font></strong></em>
<br><em><strong><font color="#707070">        </font></strong></em>
<br><em><strong><font color="#707070">        See also `remove_tail', `remove', `remove_first'.</font></strong></em>
<br><br><strong><font color="#FF0000">    -</font></strong> <strong><font color="#0000FF">remove</font></strong> index:<a href="INTEGER.html"><font color="#008000">INTEGER</font></a> <-
<br><em><strong><font color="#707070">        Remove the item at position `index'. Followings items</font></strong></em>
<br><em><strong><font color="#707070">        are shifted left by one position.</font></strong></em>
<br><em><strong><font color="#707070">        </font></strong></em>
<br><em><strong><font color="#707070">        See also `remove_first', `remove_head', `remove_tail', `remove_last'.</font></strong></em>
<br><br><strong><font color="#FF0000">    -</font></strong> <strong><font color="#0000FF">remove_last</font></strong> <-
<br><em><strong><font color="#707070">        Remove the `last' item.</font></strong></em>
<br><em><strong><font color="#707070">        </font></strong></em>
<br><em><strong><font color="#707070">        See also `remove_first', `remove', `remove_tail'.</font></strong></em>
<br><br><strong><font color="#FF0000">    -</font></strong> <strong><font color="#0000FF">remove_tail</font></strong> n:<a href="INTEGER.html"><font color="#008000">INTEGER</font></a> <-
<br><em><strong><font color="#707070">        Remove the last `n' item(s).</font></strong></em>
<br><em><strong><font color="#707070">        </font></strong></em>
<br><em><strong><font color="#707070">        See also `remove_head', `remove', `remove_last'.</font></strong></em>
<br><br><strong><font color="#FF0000">    -</font></strong> <strong><font color="#0000FF">clear</font></strong> <-
<br><em><strong><font color="#707070">        Discard all items in order to make it `is_empty'.</font></strong></em>
<br><em><strong><font color="#707070">        </font></strong></em>
<br><em><strong><font color="#707070">        See also `clear_all'.</font></strong></em>
<br><font FACE="Sans-serif" color="#000000"><B></B></font>
<br><font FACE="Sans-serif" color="#000000"><B> Looking and Searching:</B></font>
<br><font FACE="Sans-serif" color="#000000"><B></B></font>
<br><br><strong><font color="#FF0000">    -</font></strong> <strong><font color="#0000FF">has</font></strong> x:<font color="#008000">E</font> :<a href="BOOLEAN.html"><font color="#008000">BOOLEAN</font></a> <-
<br><em><strong><font color="#707070">        Look for `x' using `equal' for comparison.</font></strong></em>
<br><em><strong><font color="#707070">        </font></strong></em>
<br><em><strong><font color="#707070">        See also `fast_has', `index_of', `fast_index_of'.</font></strong></em>
<br><br><strong><font color="#FF0000">    -</font></strong> <strong><font color="#0000FF">fast_has</font></strong> x:<font color="#008000">E</font> :<a href="BOOLEAN.html"><font color="#008000">BOOLEAN</font></a> <-
<br><em><strong><font color="#707070">        Look for `x' using basic `=' for comparison.</font></strong></em>
<br><em><strong><font color="#707070">        </font></strong></em>
<br><em><strong><font color="#707070">        See also `has', `fast_index_of', `index_of'.</font></strong></em>
<br><br><strong><font color="#FF0000">    -</font></strong> <strong><font color="#0000FF">first_index_of</font></strong> element:<font color="#008000">E</font> :<a href="INTEGER.html"><font color="#008000">INTEGER</font></a> <-
<br><em><strong><font color="#707070">        Give the index of the first occurrence of `element' using</font></strong></em>
<br><em><strong><font color="#707070">        `==' for comparison.</font></strong></em>
<br><em><strong><font color="#707070">        Answer `upper + 1' when `element' is not inside.</font></strong></em>
<br><em><strong><font color="#707070">        </font></strong></em>
<br><em><strong><font color="#707070">        See also `fast_first_index_of', `index_of', `last_index_of', </font></strong></em>
<br><em><strong><font color="#707070">        `reverse_index_of'.</font></strong></em>
<br><br><strong><font color="#FF0000">    -</font></strong> <strong><font color="#0000FF">index_of</font></strong> element:<font color="#008000">E</font> <strong><font color="#0000FF">start</font></strong> start_index:<a href="INTEGER.html"><font color="#008000">INTEGER</font></a> :<a href="INTEGER.html"><font color="#008000">INTEGER</font></a> <-
<br><em><strong><font color="#707070">        Using `is_equal' for comparison, gives the index of the first occurrence </font></strong></em>
<br><em><strong><font color="#707070">        of `element' at or after `start_index'. Answer `upper + 1' when `element' </font></strong></em>
<br><em><strong><font color="#707070">        when the search fail.</font></strong></em>
<br><em><strong><font color="#707070">        </font></strong></em>
<br><em><strong><font color="#707070">        See also `fast_index_of', `reverse_index_of', `first_index_of'.</font></strong></em>
<br><br><strong><font color="#FF0000">    -</font></strong> <strong><font color="#0000FF">reverse_index_of</font></strong> element:<font color="#008000">E</font> <strong><font color="#0000FF">start</font></strong> start_index:<a href="INTEGER.html"><font color="#008000">INTEGER</font></a> :<a href="INTEGER.html"><font color="#008000">INTEGER</font></a> <-
<br><em><strong><font color="#707070">        Using `is_equal' for comparison, gives the index of the first occurrence of </font></strong></em>
<br><em><strong><font color="#707070">        `element' at or before `start_index'. Search is done in reverse direction, </font></strong></em>
<br><em><strong><font color="#707070">        which means from the `start_index' down to the `lower' index . </font></strong></em>
<br><em><strong><font color="#707070">        Answer `lower -1' when the search fail.</font></strong></em>
<br><em><strong><font color="#707070">        </font></strong></em>
<br><em><strong><font color="#707070">        See also `fast_reverse_index_of', `last_index_of', `index_of'.</font></strong></em>
<br><br><strong><font color="#FF0000">    -</font></strong> <strong><font color="#0000FF">last_index_of</font></strong> element:<font color="#008000">E</font> :<a href="INTEGER.html"><font color="#008000">INTEGER</font></a> <-
<br><em><strong><font color="#707070">        Using `is_equal' for comparison, gives the index of the last occurrence </font></strong></em>
<br><em><strong><font color="#707070">        of `element' at or before `upper'. Search is done in reverse direction, </font></strong></em>
<br><em><strong><font color="#707070">        which means from the `upper' down to the `lower' index . Answer `lower -1' </font></strong></em>
<br><em><strong><font color="#707070">        when the search fail.</font></strong></em>
<br><em><strong><font color="#707070">        </font></strong></em>
<br><em><strong><font color="#707070">        See also `fast_last_index_of', `reverse_index_of', `index_of'.</font></strong></em>
<br><br><strong><font color="#FF0000">    -</font></strong> <strong><font color="#0000FF">fast_first_index_of</font></strong> element:<font color="#008000">E</font> :<a href="INTEGER.html"><font color="#008000">INTEGER</font></a> <-
<br><em><strong><font color="#707070">        Give the index of the first occurrence of `element' using basic `=' </font></strong></em>
<br><em><strong><font color="#707070">        for comparison. Answer `upper + 1' when `element' is not inside.</font></strong></em>
<br><em><strong><font color="#707070">        </font></strong></em>
<br><em><strong><font color="#707070">        See also `first_index_of', `last_index_of', `fast_last_index_of'.</font></strong></em>
<br><br><strong><font color="#FF0000">    -</font></strong> <strong><font color="#0000FF">fast_index_of</font></strong> element:<font color="#008000">E</font> <strong><font color="#0000FF">start</font></strong> start_index:<a href="INTEGER.html"><font color="#008000">INTEGER</font></a> :<a href="INTEGER.html"><font color="#008000">INTEGER</font></a> <-
<br><em><strong><font color="#707070">        Using basic `=' for comparison, gives the index of the first occurrence </font></strong></em>
<br><em><strong><font color="#707070">        of `element' at or after `start_index'. Answer `upper + 1' when `element' </font></strong></em>
<br><em><strong><font color="#707070">        when the search fail.</font></strong></em>
<br><em><strong><font color="#707070">        </font></strong></em>
<br><em><strong><font color="#707070">        See also `index_of', `fast_reverse_index_of', `fast_first_index_of'.</font></strong></em>
<br><br><strong><font color="#FF0000">    -</font></strong> <strong><font color="#0000FF">fast_reverse_index_of</font></strong> element:<font color="#008000">E</font> <strong><font color="#0000FF">start</font></strong> start_index:<a href="INTEGER.html"><font color="#008000">INTEGER</font></a> :<a href="INTEGER.html"><font color="#008000">INTEGER</font></a> <-
<br><em><strong><font color="#707070">        Using basic `=' comparison, gives the index of the first occurrence </font></strong></em>
<br><em><strong><font color="#707070">        of `element' at or before `start_index'. Search is done in reverse </font></strong></em>
<br><em><strong><font color="#707070">        direction, which means from the `start_index' down to the `lower' </font></strong></em>
<br><em><strong><font color="#707070">        index . Answer `lower -1' when the search fail.</font></strong></em>
<br><em><strong><font color="#707070">        </font></strong></em>
<br><em><strong><font color="#707070">        See also `reverse_index_of', `fast_index_of', `fast_last_index_of'.</font></strong></em>
<br><br><strong><font color="#FF0000">    -</font></strong> <strong><font color="#0000FF">fast_last_index_of</font></strong> element:<font color="#008000">E</font> :<a href="INTEGER.html"><font color="#008000">INTEGER</font></a> <-
<br><em><strong><font color="#707070">        Using basic `=' for comparison, gives the index of the last occurrence </font></strong></em>
<br><em><strong><font color="#707070">        of `element' at or before `upper'. Search is done in reverse direction, </font></strong></em>
<br><em><strong><font color="#707070">        which means from the `upper' down to the `lower' index . Answer `lower -1' </font></strong></em>
<br><em><strong><font color="#707070">        when the search fail.</font></strong></em>
<br><em><strong><font color="#707070">        </font></strong></em>
<br><em><strong><font color="#707070">        See also `fast_reverse_index_of', `last_index_of'.</font></strong></em>
<br><font FACE="Sans-serif" color="#000000"><B></B></font>
<br><font FACE="Sans-serif" color="#000000"><B> Looking and comparison:</B></font>
<br><font FACE="Sans-serif" color="#000000"><B></B></font>
<br><br><strong><font color="#FF0000">    -</font></strong> '<font color="#B8860B">==</font>' <strong><font color="#A020F0">Right</font></strong> <font color="#A020F0">60</font> other:<a href="COLLECTION.html"><font color="#008000">COLLECTION</font></a>[<font color="#008000">E</font>] :<a href="BOOLEAN.html"><font color="#008000">BOOLEAN</font></a> <-
<br><em><strong><font color="#707070">        Do both collections have the same `lower', `upper', and</font></strong></em>
<br><em><strong><font color="#707070">        items?</font></strong></em>
<br><em><strong><font color="#707070">        The basic `=' is used for comparison of items.</font></strong></em>
<br><em><strong><font color="#707070">        </font></strong></em>
<br><em><strong><font color="#707070">        See also `is_equal_map', `same_items'.</font></strong></em>
<br><br><strong><font color="#FF0000">    -</font></strong> <strong><font color="#0000FF">is_equal_map</font></strong> other:<font color="#008000">SELF</font> :<a href="BOOLEAN.html"><font color="#008000">BOOLEAN</font></a> <-
<br><em><strong><font color="#707070">        Do both collections have the same `lower', `upper', and</font></strong></em>
<br><em><strong><font color="#707070">        items?</font></strong></em>
<br><em><strong><font color="#707070">        Feature `==' is used for comparison of items.</font></strong></em>
<br><em><strong><font color="#707070">        </font></strong></em>
<br><em><strong><font color="#707070">        See also `==', `same_items'.</font></strong></em>
<br><br><strong><font color="#FF0000">    -</font></strong> <strong><font color="#0000FF">all_default</font></strong>:<a href="BOOLEAN.html"><font color="#008000">BOOLEAN</font></a> <-
<br><em><strong><font color="#707070">        Do all items have their type's default value?</font></strong></em>
<br><em><strong><font color="#707070">        Note: for non NULL items, the test is performed with the `is_default' predicate.</font></strong></em>
<br><em><strong><font color="#707070">        </font></strong></em>
<br><em><strong><font color="#707070">        See also `clear_all'.</font></strong></em>
<br><br><strong><font color="#FF0000">    -</font></strong> <strong><font color="#0000FF">same_items</font></strong> other:<a href="COLLECTION.html"><font color="#008000">COLLECTION</font></a>[<font color="#008000">E</font>] :<a href="BOOLEAN.html"><font color="#008000">BOOLEAN</font></a> <-
<br><em><strong><font color="#707070">        Do both collections have the same items? The basic `=' is used</font></strong></em>
<br><em><strong><font color="#707070">        for comparison of items and indices are not considered (for</font></strong></em>
<br><em><strong><font color="#707070">        example this routine may yeld true with `Current' indexed in</font></strong></em>
<br><em><strong><font color="#707070">        range [1..2] and `other' indexed in range [2..3]).</font></strong></em>
<br><em><strong><font color="#707070">        </font></strong></em>
<br><em><strong><font color="#707070">        See also `is_equal_map', `is_equal'.</font></strong></em>
<br><br><strong><font color="#FF0000">    -</font></strong> <strong><font color="#0000FF">occurrences</font></strong> element:<font color="#008000">E</font> :<a href="INTEGER.html"><font color="#008000">INTEGER</font></a> <-
<br><em><strong><font color="#707070">        Number of occurrences of `element' using `equal' for comparison.</font></strong></em>
<br><em><strong><font color="#707070">        </font></strong></em>
<br><em><strong><font color="#707070">        See also `fast_occurrences', `index_of'.</font></strong></em>
<br><br><strong><font color="#FF0000">    -</font></strong> <strong><font color="#0000FF">fast_occurrences</font></strong> element:<font color="#008000">E</font> :<a href="INTEGER.html"><font color="#008000">INTEGER</font></a> <-
<br><em><strong><font color="#707070">        Number of occurrences of `element' using basic `=' for comparison.</font></strong></em>
<br><em><strong><font color="#707070">        </font></strong></em>
<br><em><strong><font color="#707070">        See also `occurrences', `index_of'.</font></strong></em>
<br><font FACE="Sans-serif" color="#000000"><B></B></font>
<br><font FACE="Sans-serif" color="#000000"><B> Printing:</B></font>
<br><font FACE="Sans-serif" color="#000000"><B></B></font>
<br><br><strong><font color="#FF0000">    -</font></strong> <strong><font color="#0000FF">fill_tagged_out_memory</font></strong> <-
<br><font FACE="Sans-serif" color="#000000"><B></B></font>
<br><font FACE="Sans-serif" color="#000000"><B> Agents based features:</B></font>
<br><font FACE="Sans-serif" color="#000000"><B></B></font>
<br><br><strong><font color="#FF0000">    -</font></strong> <strong><font color="#0000FF">foreach</font></strong> action:<a href="BLOCK.html"><font color="#008000">BLOCK</font></a> <-
<br><br><strong><font color="#FF0000">    -</font></strong> <strong><font color="#0000FF">do_all</font></strong> action:<a href="BLOCK.html"><font color="#008000">BLOCK</font></a> <-
<br><em><strong><font color="#707070">        Apply `action' to every item of `Self'.</font></strong></em>
<br><em><strong><font color="#707070">        </font></strong></em>
<br><em><strong><font color="#707070">        See also `for_all', `exists'.</font></strong></em>
<br><br><strong><font color="#FF0000">    -</font></strong> <strong><font color="#0000FF">foreach</font></strong> action:<a href="BLOCK.html"><font color="#008000">BLOCK</font></a> <strong><font color="#0000FF">while</font></strong> test:<a href="BLOCK.html"><font color="#008000">BLOCK</font></a> <-
<br><em><strong><font color="#707070">        Apply `action' to every item of `Self' while test is true</font></strong></em>
<br><br><strong><font color="#FF0000">    -</font></strong> <strong><font color="#0000FF">foreach</font></strong> action:<a href="BLOCK.html"><font color="#008000">BLOCK</font></a> <strong><font color="#0000FF">until</font></strong> test:<a href="BLOCK.html"><font color="#008000">BLOCK</font></a> <-
<br><em><strong><font color="#707070">        Apply `action' to every item of `Self' until test is true</font></strong></em>
<br><br><strong><font color="#FF0000">    -</font></strong> <strong><font color="#0000FF">foreach</font></strong> action:<a href="BLOCK.html"><font color="#008000">BLOCK</font></a> <strong><font color="#0000FF">only_if</font></strong> test:<a href="BLOCK.html"><font color="#008000">BLOCK</font></a> <-
<br><br><strong><font color="#FF0000">    -</font></strong> <strong><font color="#0000FF">is_all</font></strong> test:<a href="BLOCK.html"><font color="#008000">BLOCK</font></a> :<a href="BOOLEAN.html"><font color="#008000">BOOLEAN</font></a> <-
<br><br><strong><font color="#FF0000">    -</font></strong> <strong><font color="#0000FF">for_all</font></strong> test:<a href="BLOCK.html"><font color="#008000">BLOCK</font></a> :<a href="BOOLEAN.html"><font color="#008000">BOOLEAN</font></a> <-
<br><em><strong><font color="#707070">        Do all items satisfy `test'?</font></strong></em>
<br><em><strong><font color="#707070">        </font></strong></em>
<br><em><strong><font color="#707070">        See also `do_all', `exists'.</font></strong></em>
<br><br><strong><font color="#FF0000">    -</font></strong> <strong><font color="#0000FF">exists</font></strong> test:<a href="BLOCK.html"><font color="#008000">BLOCK</font></a> :<a href="BOOLEAN.html"><font color="#008000">BOOLEAN</font></a> <-
<br><em><strong><font color="#707070">        Does at least one item satisfy `test'?</font></strong></em>
<br><em><strong><font color="#707070">        </font></strong></em>
<br><em><strong><font color="#707070">        See also `do_all', `for_all'.</font></strong></em>
<br><font FACE="Sans-serif" color="#000000"><B> </B></font>
<br><font FACE="Sans-serif" color="#000000"><B> Traditionals features (in functional languages)</B></font>
<br><font FACE="Sans-serif" color="#000000"><B></B></font>
<br><br><strong><font color="#FF0000">    -</font></strong> <strong><font color="#0000FF">filter</font></strong> test:<a href="BLOCK.html"><font color="#008000">BLOCK</font></a> <strong><font color="#0000FF">in</font></strong> other:<font color="#008000">SELF</font> <-
<br><em><strong><font color="#707070">        Filter all element which `test' element is true</font></strong></em>
<br><br><strong><font color="#FF0000">    -</font></strong> <strong><font color="#0000FF">fold_left</font></strong> function:<a href="BLOCK.html"><font color="#008000">BLOCK</font></a> <strong><font color="#0000FF">with</font></strong> element:<font color="#008000">E</font> :<font color="#008000">E</font> <-
<br><br><strong><font color="#FF0000">    -</font></strong> <strong><font color="#0000FF">fold_right</font></strong> function:<a href="BLOCK.html"><font color="#008000">BLOCK</font></a> <strong><font color="#0000FF">with</font></strong> element:<font color="#008000">E</font> :<font color="#008000">E</font> <-
<br><font FACE="Sans-serif" color="#000000"><B></B></font>
<br><font FACE="Sans-serif" color="#000000"><B> Other features</B></font>
<br><font FACE="Sans-serif" color="#000000"><B></B></font>
<br><br><strong><font color="#FF0000">    -</font></strong> <strong><font color="#0000FF">replace_all</font></strong> old_value:<font color="#008000">E</font> <strong><font color="#0000FF">with</font></strong> new_value:<font color="#008000">E</font> <-
<br><em><strong><font color="#707070">        Replace all occurrences of the element `old_value' by `new_value'</font></strong></em>
<br><em><strong><font color="#707070">        using `equal' for comparison.</font></strong></em>
<br><em><strong><font color="#707070">        </font></strong></em>
<br><em><strong><font color="#707070">        See also `fast_replace_all', `move'.</font></strong></em>
<br><br><strong><font color="#FF0000">    -</font></strong> <strong><font color="#0000FF">fast_replace_all</font></strong> old_value:<font color="#008000">E</font> <strong><font color="#0000FF">with</font></strong> new_value:<font color="#008000">E</font> <-
<br><em><strong><font color="#707070">        Replace all occurrences of the element `old_value' by `new_value'</font></strong></em>
<br><em><strong><font color="#707070">        using operator `=' for comparison.</font></strong></em>
<br><em><strong><font color="#707070">        </font></strong></em>
<br><em><strong><font color="#707070">        See also `replace_all', `move'.</font></strong></em>
<br><br><strong><font color="#FF0000">    -</font></strong> <strong><font color="#0000FF">move</font></strong> lower_index:<a href="INTEGER.html"><font color="#008000">INTEGER</font></a> <strong><font color="#0000FF">to</font></strong> upper_index:<a href="INTEGER.html"><font color="#008000">INTEGER</font></a> <strong><font color="#0000FF">by</font></strong> distance:<a href="INTEGER.html"><font color="#008000">INTEGER</font></a> <-
<br><em><strong><font color="#707070">        Move range `lower_index' .. `upper_index' by `distance'</font></strong></em>
<br><em><strong><font color="#707070">        positions. Negative distance moves towards lower indices.</font></strong></em>
<br><em><strong><font color="#707070">        Free places get default values.</font></strong></em>
<br><em><strong><font color="#707070">        </font></strong></em>
<br><em><strong><font color="#707070">        See also `slice', `replace_all'.</font></strong></em>
<br><br><strong><font color="#FF0000">    -</font></strong> <strong><font color="#0000FF">slice</font></strong> min:<a href="INTEGER.html"><font color="#008000">INTEGER</font></a> <strong><font color="#0000FF">to</font></strong> max:<a href="INTEGER.html"><font color="#008000">INTEGER</font></a> :<font color="#008000">SELF</font> <-
<br><em><strong><font color="#707070">        New collection consisting of items at indexes in [`min'..`max'].</font></strong></em>
<br><em><strong><font color="#707070">        Result has the same dynamic type as `Current'.</font></strong></em>
<br><em><strong><font color="#707070">        The `lower' index of the `Result' is the same as `lower'.</font></strong></em>
<br><em><strong><font color="#707070">        </font></strong></em>
<br><em><strong><font color="#707070">        See also `from_collection', `move', `replace_all'.</font></strong></em>
<br><br><strong><font color="#FF0000">    -</font></strong> <strong><font color="#0000FF">reverse</font></strong> <-
<br><em><strong><font color="#707070">        Reverse the order of the elements.</font></strong></em>
<br><font FACE="Sans-serif" color="#000000"><B></B></font>
<br><font FACE="Sans-serif" color="#000000"><B> Invariant.</B></font>
<br><font FACE="Sans-serif" color="#000000"><B></B></font>
<br><font FACE="Sans-serif" color="#000000"><B> [</B></font>
<br><font FACE="Sans-serif" color="#000000"><B> -? { lower <= upper + 1 };</B></font>
<br><font FACE="Sans-serif" color="#000000"><B> ];</B></font>
</body>
</html>
|