Tags » Iterator

Iterator Pattern

What is Iterator Design Pattern ?

  • is a behavioural design pattern
  • defines a way to move through a collection of data in a particular class…
  • 62 more words
Design Patterns

ZigZag Iterator

Problem: Given two 1d vectors, implement an iterator to return their elements alternately.

For example, given two 1d vectors:

v1 = 
v2 = 

By calling next repeatedly until hasNext returns… 101 more words


Spelunking Linux - what is this auxv thing anyway

While spelunking Linux, trying to find an easier way to do this or that, I ran across this vDSO thing (virtual ELF Dynamic Shared Object). What? 2,062 more words


Spelunking Linux - Yes, the system truly is a database

In this article: Isn’t the whole system just a database? – libdrm, I explored a little bit of the database nature of Linux by using libudev to enumerate and open libdrm devices.  842 more words


A skeleton code for Iterator in Rust

For record, I wrote down the same code.

Consuming Iterator

Iterator that does not consume items


Handling Multiple Windows in Selenium Webdriver

Hello friends. In this article we are going to see how to handle multiple windows in Selenium Webdriver. There are situations where we would have to deal with multiple windows. 265 more words


Python - Iterators

Post contents:
– What is an iterator?
– Examples
– Pros/Cons
– Cases

What is an iterator?

https://docs.python.org/2/glossary.html#term-iterator defines an iterator as

An object representing a stream of data.

844 more words