Custom Iterators And Iterables

Use this skill when implementing the Iterable<T> or Iterator<T> interfaces in Apex to create custom traversal logic, build lazy-evaluation data sources for Batch Apex, or stream large result sets without materializing an entire List. Trigger keywords: custom iterator, Iterable interface, Iterator interface, batch start iterable, lazy evaluation apex, streaming apex query, paginated batch. NOT for standard list iteration (use for-each on List directly). NOT for Batch Apex fundamentals — use apex/batch-apex-patterns. NOT for Map/List bulkification in triggers or services — use apex/apex-collections-patterns.

PranavNagrecha a310772 7 files · 47.7 KB Updated 15 repo stars

File contents

PranavNagrecha/AwesomeSalesforceSkills/tree/main/skills/apex/custom-iterators-and-iterables commit a3107721a1

Frequently asked questions

npx skillmds add pranavnagrecha/custom-iterators-and-iterables