That is insane. I wonder what the performance implications are for this. It would seem that some cases would see a speed gain and others a speed loss compared with just storing the values. Memory is another consideration; an infinite set of all even numbers would result in a gain in capability obviously. Truly cool. Do not be afraid to bring up other topics like this.
One of the best video I was waiting for. This will really be helpful even for advance scala developers to understand basics of FP collections. You are my one of the best JVM teacher so far. Thank you Daniel. Keep Rocking Mr.Rockstar.
@@rockthejvm Just a quick question. How would you implement a function that takes an RSet and returns all the values that it contains? Something like a 'toList' method?
Nice. It would be great to showcase collections with effects e.g. Queue, etc. from Cats Effect. I find the effect-ful collections are limited and I have to build a facade over the standard collections. Definitely not elegant
That is insane. I wonder what the performance implications are for this. It would seem that some cases would see a speed gain and others a speed loss compared with just storing the values. Memory is another consideration; an infinite set of all even numbers would result in a gain in capability obviously.
Truly cool. Do not be afraid to bring up other topics like this.
Will do!
It's awesome how good you're explaining everything.
I'm happy to hear my explanations click - I'm in the "getting clicks" business.
One of the best video I was waiting for. This will really be helpful even for advance scala developers to understand basics of FP collections. You are my one of the best JVM teacher so far. Thank you Daniel. Keep Rocking Mr.Rockstar.
:D
Really cool concept. Came here from the "Functional Programming in Scala" course by Odersky. This video complements the course nicely
Thanks for this video, been using scala a while and never found these concepts around :) Very interesting!
Glad it clicked!
can't imagine why you have so few views. Thanks for the explainations
Wow. Really cool. Never thought about collections as functions. Thanks for the video!
Glad it helped!
@@rockthejvm Just a quick question. How would you implement a function that takes an RSet and returns all the values that it contains? Something like a 'toList' method?
I just realized that this is kind of impossible, since you allow for probably infinite values. Thanks again for the video!
In PBSet, + and - should be analogous. If you are checking contains(x) for - operation, you should be checking !contains(x) for + operation.
Sure - I did make them a bit asymmetrical in the video. Nice observation
great video thanks. Do you have a video on Scala collections hierarchy?, I still find it confusing why is it so large, from Traversable and below.
Will make one
Nice. It would be great to showcase collections with effects e.g. Queue, etc. from Cats Effect. I find the effect-ful collections are limited and I have to build a facade over the standard collections. Definitely not elegant
Great idea for a future video
Very interesting! Thanks! 🙃
:D
Maybe in scala 4 they will remove all the stuff that throw exceptions
LOL
What is the benefit of using functions for creating collections? Why not have implementations similar to Java?
The benefits include infinite collections and a new mindset.
nice!