iterator

[Mỹ]/ɪtəˈreɪtə/
[Anh]/ˈɪtəˌreɪtər/
Tần suất: Rất cao

Dịch

n.(computing) một đối tượng hoặc quy trình mà lặp qua các mục trong một tập hợp, trả về mỗi mục lần lượt.

Cụm từ & Cách kết hợp

for iterator

mẫu lặp

iterator object

lặp không hợp lệ

each iterator

vô hiệu hóa lặp

iterator function

phạm vi lặp

using iterator

bộ chuyển đổi lặp

iterator error

bộ chuyển đổi lặp

iterator type

danh mục lặp

iterator loop

danh mục lặp

iterator design

lặp trình lại

iterator pattern

bắt đầu lặp

Câu ví dụ

the iterator allows you to loop through each element in the collection.

Bộ lặp trả về phần tử tiếp theo trong chuỗi.

you can use an iterator to access elements without exposing the underlying structure.

Bộ lặp này duyệt danh sách theo thứ tự chèn.

the iterator pattern is commonly used in software design.

Khởi tạo bộ lặp trước khi vào vòng lặp.

always check if the iterator has next element before proceeding.

Đặt lại bộ lặp về đầu của bộ sưu tập.

the list iterator provides bidirectional traversal.

Bộ lặp trỏ đến mục hiện tại.

you need to initialize the iterator before using it.

Di chuyển bộ lặp sau khi xử lý mỗi bản ghi.

the iterator returns null when it reaches the end of the sequence.

Kiểm tra xem bộ lặp đã đến cuối chưa.

each iterator maintains its own position in the collection.

Sử dụng bộ lặp giúp tránh sao chép toàn bộ mảng.

the iterator can be reset to traverse the collection again.

Bộ lặp hỗ trợ lọc các mục một cách lười biếng.

using an iterator is more efficient than indexed access in some cases.

Nếu bộ sưu tập thay đổi, bộ lặp có thể trở nên không hợp lệ.

the iterator interface defines standard methods for traversal.

Bộ lặp này sẽ báo lỗi khi không còn phần tử nào.

you can create multiple iterators for the same collection.

Lưu bộ lặp trong một biến để sử dụng lại.

Từ phổ biến

Khám phá những từ vựng được tìm kiếm thường xuyên

Tải ứng dụng để mở khóa toàn bộ nội dung

Muốn học từ vựng hiệu quả hơn? Tải ngay ứng dụng DictoGo và tận hưởng nhiều tính năng ghi nhớ và ôn tập từ vựng hơn nữa!

Tải DictoGo ngay