Here are the methods covered so far.
In this article, I will cover following methods.
The sample collections used in this part are shown as below.
every is more flexible as the callback is also passed an index.
There are so many ways implement contains but i used some as it short circuits (returns as soon as a condition is met).
You can use
every here to check if two sequences are the same as every passes an index of current element to the callback.
I hope this article can serve as a cheat sheet (that’s how I started this series).
Please let me know should you find any errors or improvements I can make to the codes.
The full source code and instructions on how to run them are on GitHub.