tech
Wednesday, January 10, 2024
Ruby lazy collections and with_index
The lazy collections don't quite give us a way to use `with_index` , but, we can use `each_with_index`.
It took me a moment to figure out the problem was with the collection being lazy.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment