hastebrot
08/08/2016, 9:15 AMimmutable.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.