What is the translation of " AN ITERATOR " in Serbian?

Examples of using An iterator in English and their translations into Serbian

{-}
  • Colloquial category close
  • Ecclesiastic category close
  • Computer category close
  • Latin category close
  • Cyrillic category close
It looks like a function but acts like an iterator.
Генератор личи на функцију али се понаша као итератор.
An iterator is behaviorally similar to a database cursor.
Итератор је по понашању сличан курсору базе података.
The following example shows a typical use of an iterator.
Следећи пример показује типично коришћење итератора.
By using an iterator one is isolated from these sorts of consequences.
Крошћењем итератора један је изолован од ових последица.
In short, a generator looks like a function but behaves like an iterator.
Укратко, генератор личи на функцију али се понаша као итератор.
An iterator may allow the container object to be modified without invalidating the iterator..
Итератор може дозовлити објекту садржине да буде измењен без поништавања итератора..
In short, a generator appears to be a function but it behaves like an iterator.”.
Укратко, генератор личи на функцију али се понаша као итератор.
In Python, a generator is an iterator constructor:a function that returns an iterator.
У Пајтону, генератор је конструктор итератора:функција која враћа итератор.
For any iterable sequence type or class, the built-in function iter()is used to create an iterator object.
ЗА сваку итераблу типа секвенце или класе, уграђена функција iter() се користи данаправи предмет итератора.
In object-oriented languages an iterator, even if implicit, is often used as the means of traversal.
У објектно оријентисаним језицима итератор, чак и ако имплицитно, се често користи као средство за пролазак.
Any user-defined class can support standard iteration(either implicit or explicit) by defining an__iter__()method that returns an iterator object.
Било која класа дефинисана од корисника може подржати стандардно понављање( било имплицитно или експлицитно) дефинишући методу__ iter__()која враћа предмет итератора.
Instead of the Java“foreach” loops for looping through an iterator, Scala has a much more powerful concept of for-expressions.
Уместо Јава петље" форич" преко итератора, Скала има много снажнији концепт for-израза.
When an iterator is advanced beyond the last element it is by definition equal to the special end iterator value.
Када је итератор напредовао изнад последњег елемент он је по дефиницији једнак специјалном крају вредности итератора..
In Python, an iterable is an object which can be converted to an iterator, which is then iterated through during the for loop;
У Пајтону, итерабла је објекат који може бити конвертован у итератор, који је касније понављан током for петље;
For instance, once an iterator has advanced beyond the first element it may be possible to insert additional elements into the beginning of the container with predictable results.
На пример, када је итератор напредовао даље од првог елемента могуће је унети додатне елементе на почетак садржине са предвидивим резултатима.
In more complicated situations,a generator may be used manually outside of a loop to create an iterator, which can then be used in various ways.
У много компликованијим ситуацијама,генератори могу бити коришћени изван петље да би се направила итерација, која онда може бити употребљена на разне начине.
In computer programming, an iterator is an object that enables a programmer to traverse a container, particularly lists.
У програмирању, итератор је објекат који омогућује програмеру да пролази кроз колекцију, нарочито листу.
In addition, associative arrays may also include other operations such as determining the number of bindings or constructing an iterator to loop over all the bindings.
Додатно, асоцијативни низови могу укључити друге операције попут одређивање броја везивања или конструисање итератора којим би се, кроз петљу, прошло кроз сва везивања.
The primary purpose of an iterator is to allow a user to process every element of a container while isolating the user from the internal structure of the container.
Примарна сврха итератора је да дозволи кориснику да изврши процес над сваким елементом колекције док изолује корисника од унутрашње структуре колекције.
Iterating over a container is done using this form of loop: for e in c while w do loop body od; The in c clause specifies the container, which may be a list, set, sum, product, unevaluated function, array, oran object implementing an iterator.
Итератвно преко посуде врши се користећи овај облик петље: for e in c while w do тело петље od;" In c" део прецизира контејнер, који може бити листа, скуп, збир, производ, функција, низ, илиобјекат спровођење итератор.
An iterator is an object that provides iteration as a generic service, allowing iteration to be done in the same way for a range of different data structures.
Итератор је објекат који пружа итерацију као генерички сервис, омогућавајући да се итерација уради на исти начин за низ различитих структура података.
The syntax of a for-loop is based on the heritage of the language and the prior programming languages it borrowed from, so programming languages thatare descendants of or offshoots of a language that originally provided an iterator will often use the same keyword to name an iterator, e.g.
Синтака for петље је направљена у стилу програмског језика у којем се користи или је позајмљена из старијих програмских језика, патако програмски језици који су потомци или изданци истог језика ће често користити исту реч да означе интератор, нпр.
There must also be a way to create an iterator so it points to some first element as well as some way to determine when the iterator has exhausted all of the elements in the container.
Такође мора постојати начин да се створи итератор тако да указује на неки први елемент као и начин да се одреди када ће итератор истрошити све елементе колекције.
Implicit iterators are often manifested by a"foreach" statement(or equivalent), such as in the following Python example: for value in iterable: print value In Python,an iterable is an object which can be converted to an iterator, which is then iterated through during the for loop; this is done implicitly.
Имплицитни итератору се често манифестују" форич" изјавом( или еквивалетно), као што је следећи пример у Пајтону: for value in iterable: print value У Пајтону,итерабла је објекат који може бити конвертован у итератор, који је касније понављан током for петље; ово се дешава имплицитно.
An iterator can enforce additional restrictions on access, such as ensuring that elements cannot be skipped or that a previously visited element cannot be accessed a second time.
Итератор може наметнути додатна ограничења на приступ, као што је обезбеђење да елементи не могу бити прескочени или да претходно посећени елементи не могу имати приступ други пут.
The following example shows an equivalent iteration over a sequence using explicit iterators: it= iter(sequence) while True: try: value= it. next() in Python 2.x value= next(it) in Python 3.x except StopIteration: break print(value) Any user-defined class can support standard iteration(either implicit or explicit) by defining an__iter__()method that returns an iterator object.
Следећи пример показује еквивалентно понављање над секвенцом користећи експлицитне итераторе: it= iter( sequence) while True: try: value= it. next() у Пајтону 2. x value= next( it) у Пајтону 3. x except StopIteration: break it= iter( it) print( value) Било која класа дефинисана од корисника може подржати стандардно понављање( било имплицитно или експлицитно) дефинишући методу__ iter__()која враћа предмет итератора.
The first time that a generator invocation is reached in a loop, an iterator object is created that encapsulates the state of the generator routine at its beginning, with arguments bound to the corresponding parameters.
Први пут када се генератор изврши у петљи, итереторни објекат је креиран да енкапсулира стање генератора на његовом почетку, са аргументима везаних за одговарајуће параметре.
An iterator performs traversal and also gives access to data elements in a container, but does not itself perform iteration(i.e., not without some significant liberty taken with that concept or with trivial use of the terminology).
Траба имати на уму да итератор врши прелазак и такође даје приступ елементима колекције, али не извршава понављање( тј, не без неког значајног одузимања слободе тог концепта или са тривијалним коришћењем технологије).
User-created containers only have to provide an iterator that implements one of the five standard iterator interfaces, and all the algorithms provided in the STL can be used on the container.
Контејнери направљени од стране корисника би требало једино да обезбеде итератор који имплементира један од пет стандардних итераторских интерфејса, и сви алгоритми обезбеђени STL-ом могу се применити на контејнер.
An example of a Python generator returning an iterator for the Fibonacci numbers using Python's yield statement follows: def fibonacci limit a, b= 0, 1 for in range(limit): yield a a, b= b, a+b for number in fibonacci 100The generator constructs an iterator print(number) Some object-oriented languages such as C, C++(later versions), Delphi(later versions), Go, Java(later versions), Lua, Perl, Python, Ruby provide an intrinsic way of iterating through the elements of a container object without the introduction of an explicit iterator object.
Пример Пајтоновог генератора који враћа итератор су Фибоначијеви бројеви који користе Пајтоновуyield наредбу: def fibonacci( limit): a, b, c= 0, 1, 0 while c< limit: yield a a, b, c= b, a+b, c+1 for number in fibonacci( 100): Генератор конструише итератор print( number) Неки објектно-оријентисани језици као што су C, C++( раније верзије), Delphi( раније верзије), Гоу, Јава( раније верзије), Lua, Перл, Пајтон, Руби пружају суштински начин понављања кроз елементе садржине објекта без упознавања са објектним експлицитним итератором..
Results: 87, Time: 0.0298

Word-for-word translation

Top dictionary queries

English - Serbian