Tags » Iterator

Ruby : Array : Iterate the given block for each array of consecutive elements

each_cons(p1) public

Iterates the given block for each array of consecutive <n> elements. If no block is given, returns an enumerator. 61 more words

Ruby

Custom Iterators in Ruby

Of all the things I’ve learned so far on my Ruby journey, custom iterators has been the hardest for me to wrap my head around. So I’m going to walk you (me) through how they are constructed, step by step. 351 more words

Sorting and Pagination is one of the most important things that we need on a page when we are dealing with large data sets. When we are sorting a Sobject list , it is easy to use Order By clause in SOQL and get the desired results. 798 more words

Comparable

Binary Tree - Iterator for in order traversal

Basics

The idea behind writing an iterator is to traverse a binary tree in successive steps. Based on traversal, this iterator can either traverse in order, pre order or post order. 64 more words

Binary Tree

Blocks and Rubocop!

I am progressing in my development class at DaVinci Institute and a couple of nights ago we were assigned one of my favorite assignments so far: FizzBuzz. 436 more words

Rubocop

Collection Interview Questions

  • What is HashMap?
  • How Hashmap works internally?(Using hashing, buckets,linked list.)
  • How Hashmap increase its size when it exhausted its initial capacity.
  • What is BlockedinkedQueue. It can be used in multithreading env.
  • 245 more words
Collections

Biml XV - ForEach Record in the DataSet (Control Flow)

Our prior posts showed techniques using the OLEDB Command to iterate over each row in the dataflow (see Biml XII and Biml XIII). Using that task we fire an SQL statement for each row in the dataflow. 1,195 more words

SSIS