|
xquery выход из цикла
|
|||
---|---|---|---|
#18+
всем привет. как в xquery сделать выход из цикла? Код: xml 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13.
... |
|||
:
Нравится:
Не нравится:
|
|||
09.07.2012, 16:25 |
|
xquery выход из цикла
|
|||
---|---|---|---|
#18+
pigmoкак в xquery сделать выход из цикла?Вынести в отдельную функцию и вызвать return. При чем здесь XML? ... |
|||
:
Нравится:
Не нравится:
|
|||
09.07.2012, 23:43 |
|
xquery выход из цикла
|
|||
---|---|---|---|
#18+
DONE The "for-loop" is not actually a loop, so there is no way of exiting it - in functional languages you don't have that kind of flow control. However optimising XQuery implementations will probably not evaluate the whole loop if you just use parts of the result, e.g.: > subsequence(for $i in 1 to 1000 > return $i, > 1, > 10) will only evaluate the first 10 elements of the sequence from the for loop as the others are not needed for the result of the "subsequence" call. ... |
|||
:
Нравится:
Не нравится:
|
|||
10.07.2012, 09:37 |
|
|
start [/forum/topic.php?fid=14&tid=1332684]: |
0ms |
get settings: |
9ms |
get forum list: |
13ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
190ms |
get topic data: |
14ms |
get forum data: |
3ms |
get page messages: |
48ms |
get tp. blocked users: |
2ms |
others: | 12ms |
total: | 299ms |
0 / 0 |