Facebook's `immutable.js` has a `Seq.cacheResult()...
# stdlib
h
Facebook's
immutable.js
has a
Seq.cacheResult()
function (https://facebook.github.io/immutable-js/docs/#/Seq/cacheResult).
If you know a Seq will be used multiple times, it may be more efficient to first cache it in memory.
Use this method judiciously, as it must fully evaluate a Seq which can be a burden on memory and possibly performance.