Great article. Thanks for sharing this knowledge ๐
However, the first element of the next array is the last element of the previous
While describing the behaviour of each_cons, you mention the above. I think that may not be 100% accurate in all cases, as the first element of the next array is actually the second element of the previous.
It just so happens to be correct for the accompanying example because the returned arrays are of size 2.
Great article. Thanks for sharing this knowledge ๐
While describing the behaviour of
each_cons
, you mention the above. I think that may not be 100% accurate in all cases, as the first element of the next array is actually the second element of the previous.It just so happens to be correct for the accompanying example because the returned arrays are of size 2.
Hope that makes sense ๐
Thanks for reading!
Good catch there ๐ I've updated the post to state that correctly, thank you for pointing it out.