Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
29athrowaway
38 days ago
|
parent
|
context
|
favorite
| on:
The Origins of Scala (2009)
Except when you chain many collection operations... then it breaks horribly.
tbct
38 days ago
[–]
Can you elaborate on what you're referring to? I can see performance becoming a problem if you repeatedly chain non-optimisable (in bytecode) as excluding the in place operations I believe all ops re-allocate the collection.
neko-kai
38 days ago
|
parent
|
next
[–]
Just use `.iterator` before chaining and the final collection will only be allocated once.
ATMLOTTOBEER
38 days ago
|
parent
|
prev
[–]
Ignore that person they don’t know what they’re talking about lol
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: