Vishnu Tiwariblog.vishnutiwari.me·Apr 28, 2024Internal Mechanism of Iterator, Iterable, and Generator in PythonIn the realm of Python programming, the concepts of iteration, iterables, and generators serve as fundamental pillars underlying the language's versatility and power. While often encountered in coding endeavors, these concepts can sometimes pose chal...Discuss·134 readsPython
Erick Scott CHURACUTIPA BLASerick00xx.hashnode.dev·Apr 25, 2024Exploring the Iterator Pattern in Simple TermsAbstract The Iterator pattern, introduced by Erich Gamma and his colleagues in "Design Patterns: Elements of Reusable Object-Oriented Software" in 1995, provides a solution for sequentially accessing elements of an aggregate object while abstracting ...Discussiterator
Stella Mariesmkou.hashnode.dev·Apr 22, 2024Gleam: Difference of SquaresProblem on Exercism and on Project Euler pub fn square_of_sum(n: Int) -> Int {} pub fn sum_of_squares(n: Int) -> Int {} pub fn difference(n: Int) -> Int { square_of_sum(n) - sum_of_squares(n) } First Iteration: Recursion Since the square of th...Discussgleam
Ji-hyung, Leejuly249.hashnode.dev·Mar 2, 2024Iteratation Protocol (Concept)The Iteration Protocol was introduced in ES6 to create iterable data structures. It enables the use of the for...of loop, spread syntax, and array destructuring assignment for data structures that adhere to the Iteration Protocol. Iterable Protocol T...Discussiterator protocol
Christian LehnertProblog.christianlehnert.dev·Feb 16, 2024Iterator PatternWithin the domain of object-oriented programming, the Iterator pattern is a crucial design pattern that facilitates the traversal of collections. By effectively separating algorithms from the underlying data structure, it allows clients to access ele...Discuss·56 readsdesign patterns
Sunny Guptaicodestartups.com·Feb 8, 2024Exploring the Power of JavaScript Generators and IteratorsJavaScript generators and iterators are powerful tools that can simplify your code and improve its efficiency. In this article, we will explore how generators and iterators work and how to use them to create custom iteration logic for your objects. W...Discuss·10 likesJavaScript
Dipto Biswasdiptobiswas.hashnode.dev·Feb 4, 2024Iterators in RustIntroduction Iterators as the name says traverses over a sequence of elements by taking turns. In Rust Iterators doesn't do anything more, but you can always write logic to do more. Example This is how we can use iterators. fn main() { let v = ve...DiscussRust
Akash Thoriyaakashthoriya.hashnode.dev·Jan 23, 2024Generators and IteratorsExpert-Level Explanation Generators and iterators in JavaScript are advanced concepts used to handle sequences of data. An iterator is an object that allows us to traverse a collection, one element at a time. A generator is a special type of function...DiscussJavaScript Fundamentals for InterviewsJavaScript
Moniquectrlaltmonique.hashnode.dev·Dec 20, 2023A Beginner's Guide to JavaScript IterationGun to your head. 10 seconds. Tell me what iterators are. If you fumbled the answer or just straight up didn’t know… well, good luck Charlie. Just kidding, it just means I’ve reached my target audience. Also pretty wild start to the article right? I ...Discuss·14 likes·102 readsiterator protocol
Sushant Pantsushantpant.com.np·Dec 20, 2023Iterators: Effortless sequencingImagine a library with lots of books, in a "C# term," a collection of books. You find yourself on a search for a specific book, navigating through numerous bookshelves. Finally, after some searching, you found it. Now, consider an alternative scenari...Discuss·1 like·101 readsC#