3 ms·
(I know this was 17 days ago, but I just noticed this comment). Being contained in a finite amount of memory does not give a list a size. Lists with cycles ma
by jemfinch 17y ago
(I know this was 17 days ago, but I just noticed this comment).
Being contained in a finite amount of memory does not give a list a size. Lists with cycles may take up a number of nodes, but saying they have a "size," despite the fact that you can iterate over them infinitely and never reach the end, is oxymoronic.
An infinite sequence (which a list with a cycle is) has no size.