buffered

Eagerly materializes this sequence into a List and returns it as a (now safely re-iterable) Sequence. Use this to consume a one-shot/expensive-to-recompute sequence more than once without recomputing it every time, at the cost of holding all of its elements in memory at once; see also cached for a lazier alternative that memoizes elements only as they are first traversed.