File: iterator

package info (click to toggle)
libdb2-ruby 0.5.4-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,352 kB
  • ctags: 2,743
  • sloc: ansic: 11,156; ruby: 6,199; cpp: 6,064; makefile: 86; sh: 31
file content (24 lines) | stat: -rw-r--r-- 997 bytes parent folder | download | duplicates (18)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<entry index='i'>
<name>Iterator</name>
<reference>block</reference>
<reference>method</reference>
<content>
    Rehearser
    The group of a certain code which can be passed to the ((method|Method))
    is called '((block|Block)).'
    Iterator is the method which the given block...this is surely the case.
    In general, the block is executed more than one time, so the method is
    called 'iterator' ("iterate" = repeat it); but there is a custom
    to call the case executing only once or not repeating, also iterator,
    insofar as the block is given to the method.
    Keep in mind, just the method have the 'repetition' as many as 0 or 1 time,
    do not call it liar, because it must be the 'repetition.'

    In the iterator, you can execute the block by '((|yield|)).'

    Ah, of course
    Nothing happens to the metho
    when the block is given of not evaluating the block internally.
    I wish you not to disappoint though the error does not occur either.
</content>
</entry>