3 ms·
Scala gets around this with "views": store the higher-order functions until the collection actually needs to be used and then apply them all at once, without an
by saryant 13y ago
Scala gets around this with "views": store the higher-order functions until the collection actually needs to be used and then apply them all at once, without any intermediate data structure.
http://docs.scala-lang.org/overviews/collections/views.html http://docs.scala-lang.org/overviews/collections/views.html