MỘT ITERATOR Tiếng anh là gì - trong Tiếng anh Dịch

Ví dụ về việc sử dụng Một iterator trong Tiếng việt và bản dịch của chúng sang Tiếng anh

{-}
  • Colloquial category close
  • Ecclesiastic category close
  • Computer category close
Kết quả trả về là một Iterator.
The result is an iterator.
Nó nóng vai trò như một Iterator để cho phép bạn vọc qua dữ liệu của nó.
It acts as an iterator to allow you to move through its data.
Kết quả trả về là một Iterator.
Its results are an iterator.
Begin() trả về một iterator đại diện cho vị trí của phần tử đầu tiên trong container.
Begin(): returns an iterator that represents the beginning of the elements in the container.
Giá trị trả về của iter là một iterator.
Its return value is an iterator object.
Mọi người cũng dịch
StopIterationĐược tạo khi phương thức next() của một iterator không trỏ tới bất kỳ đối tượng nào.
StopIteration Raised when the next() method of an iterator does not point to any object.
Ở dòng thứ 4 thì chúng ta đang tạo một iterator.
What happens here is, on line four, we have an iterator.
Mỗi lần được tạo, một iterator có thể được duyệt tường minh bởi việc gọi lại nhiều lần phương thức next().
Once created, an iterator object can be iterated explicitly by repeatedly calling next().
Iterables là bất kỳ đối tượng nàobạn có thể nhận được một iterator từ.
Iterables are any objects you can get an iterator from.
Trước khi bạn có thể truycập một Collection thông qua một Iterator, bạn phải có được nó.
Before you can access a collection through an iterator, you must obtain one.
Giống như một Iterator, một Stream mới phải được tạo ra để duyệt lại các phần tử của dữ liệu nguồn.
Like an iterator, a new stream must be generated to revisit the same element of the source.
Bạn không biết chắc mộtđối tượng cụ thể là một iterator hay không.
It is not possible toknow reflectively whether a particular object is an iterator.
Ở ví dụ này,bên trong vòng lặp for ta tạo một iterator object tên là iter obj bằng cách gọi iter() trên iterable.
The for loop creates an iterator object internally, iter_obj by calling lter() on the iterable.
Đạt được một iterator tới phần đầu của Collection bằng cách gọi phương thức iterator() của Collection trong Java.
Obtain an Iterator to the start of the collection by calling the collection iterator() method.
Cách đơn giản nhất để thực hiện điều này là thuê một Iterator, là một đối tượng mà triển khai hoặc Iterator hoặc Listlerator interface.
The easiest way to do this is to employ an iterator, an object that implements either the Iterator or the Listiterator interface.
Một iterator chỉ là một thuật ngữ âm thanh lạ mắt cho một đối tượng có một phương thức next().
An iterator is just a fancy sounding term for an object that has a next() method.
Đó là, khi tuần hoàn qua một LinkedHashSet bởi sử dụng một Iterator, các phần tử sẽ được trả về theo thứ tự như khi chúng đã được chèn.
That is, when cycling through a LinkedHashSet using an iterator, the elements will be returned in the order in which they were inserted.
Trong JavaScript một iteratormột object mà nó định nghĩa một trình tự và giá trị có thể trả về tiếp theo trước khi kết thúc.
In JavaScript an iterator is an object which defines a sequence and potentially a return value upon its termination.
Cách đơn giản nhất để thực hiện điều này là thuê một Iterator, là một đối tượng mà triển khai hoặc Iterator hoặc Listlerator interface.
The better way is to employ an iterator, which is an object that implements either the Iterator or the ListIterator interface.
Nếu một iterator đã được tạo trên một đối tượng collectionmột số thread khác cố gắng sửa đổi đối tượng collection" structurally", một ngoại lệ sửa đổi đồng thời sẽ được ném.
If an iterator has been created on a collection object and some other thread tries to modify the collection object"structurally”, a concurrent modification exception will be thrown.
Nói chung, để sử dụng một iterator để tuần hoàn qua các nội dung của một Collection, bạn theo các bước sau.
In general, to use an iterator to cycle through the contents of a collection, follow these steps.
Nói cách khác, một Iterator được thiết kế cho phép bạn xử lý nhiều loại tập hợp khác nhau bằng cách truy cập những phần tử của tập hợp với cùng một phương pháp, cùng một cách thức định sẵn, mà không cần phải hiểu rõ về những chi tiết bên trong của những tập hợp này.
In other words, iterators are designed to let you handle many different kinds of collections by accessing their members in standard, accepted way, without having to know the internal details of those collections.
Tuy nhiên, khi bạn yêu cầu một iterator từ một iterator( mà bạn hiếm khi làm), nó chỉ cung cấp cho bạn một bản sao của chính nó.
However, when you request an iterator from an iterator(which you would rarely do), it just gives you a copy of itself.
Một cách cụ thể hơn một iteratormột object bất kỳ mà nó cài đặt giao thức Iterator với việc cài đặt phương thức next() mà trả về một object với thuộc tính: value, giá trị kế tiếp in chuỗi giá trị;
More specifically an iterator is any object which implements the Iterator protocol by having a next() method which returns an object with two properties: value, the next value in the sequence;
Giống như Iterator, một stream mới sẽ cần khởi tạo lại để truy cập lại elemets đó.
Like an Iterator, a new stream must be generated to revisit the same elements of the source.
Có khi bạn muốn program ngừng ở giữa một For Loop khi Iterator value.
Sometimes you want to program stopped in the middle of a For Loop Iterator value when there is a fairly large value.
Thay vào đó, một object iterator được trả về.
An iterator object for the function is returned instead.
Khi bạn làm việc với một tập hợp nhiều đối tượng, mẫu Iteratormột giải pháp tốt.
When you dealing with a collection of objects, The Iterator Pattern is the ideal solution.
Kết quả: 28, Thời gian: 0.0188

Từng chữ dịch

Truy vấn từ điển hàng đầu

Tiếng việt - Tiếng anh