Новые сообщения [новые:0]
Дайджест
Горячие темы
Избранное [новые:0]
Форумы
Пользователи
Статистика
Статистика нагрузки
Мод. лог
Поиск
|
09.07.2012, 16:25
|
|||
---|---|---|---|
|
|||
xquery выход из цикла |
|||
#18+
всем привет. как в xquery сделать выход из цикла? Код: xml 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13.
... |
|||
:
Нравится:
Не нравится:
|
|||
|
09.07.2012, 23:43
|
|||
---|---|---|---|
|
|||
xquery выход из цикла |
|||
#18+
pigmoкак в xquery сделать выход из цикла?Вынести в отдельную функцию и вызвать return. При чем здесь XML? ... |
|||
:
Нравится:
Не нравится:
|
|||
|
10.07.2012, 09:37
|
|||
---|---|---|---|
|
|||
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. ... |
|||
:
Нравится:
Не нравится:
|
|||
|
|
start [/forum/topic.php?fid=14&mobile=1&tid=1332684]: |
0ms |
get settings: |
9ms |
get forum list: |
13ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
161ms |
get topic data: |
13ms |
get forum data: |
3ms |
get page messages: |
40ms |
get tp. blocked users: |
1ms |
others: | 14ms |
total: | 260ms |
0 / 0 |