Functional Collections in Scala

Поделиться
HTML-код
  • Опубликовано: 23 ноя 2024
  • НаукаНаука

Комментарии • 29

  • @aethermass
    @aethermass 3 года назад +7

    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.

  • @politrons
    @politrons 3 года назад +5

    It's awesome how good you're explaining everything.

    • @rockthejvm
      @rockthejvm  3 года назад +1

      I'm happy to hear my explanations click - I'm in the "getting clicks" business.

  • @neeldesai108
    @neeldesai108 3 года назад +2

    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.

  • @brunovaz
    @brunovaz 3 года назад

    Really cool concept. Came here from the "Functional Programming in Scala" course by Odersky. This video complements the course nicely

  • @bernardo6012
    @bernardo6012 3 года назад +3

    Thanks for this video, been using scala a while and never found these concepts around :) Very interesting!

  • @user-fe1tw9zn4q
    @user-fe1tw9zn4q 2 года назад

    can't imagine why you have so few views. Thanks for the explainations

  • @valcron-1000
    @valcron-1000 3 года назад +1

    Wow. Really cool. Never thought about collections as functions. Thanks for the video!

    • @rockthejvm
      @rockthejvm  3 года назад

      Glad it helped!

    • @valcron-1000
      @valcron-1000 3 года назад +2

      @@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?

    • @valcron-1000
      @valcron-1000 3 года назад

      I just realized that this is kind of impossible, since you allow for probably infinite values. Thanks again for the video!

  • @ZelenoJabko
    @ZelenoJabko 3 года назад +1

    In PBSet, + and - should be analogous. If you are checking contains(x) for - operation, you should be checking !contains(x) for + operation.

    • @rockthejvm
      @rockthejvm  3 года назад

      Sure - I did make them a bit asymmetrical in the video. Nice observation

  • @leorandomnickname
    @leorandomnickname 3 года назад +1

    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.

  • @sshark97
    @sshark97 3 года назад +2

    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

    • @rockthejvm
      @rockthejvm  3 года назад +1

      Great idea for a future video

  • @MarcoBollero
    @MarcoBollero 3 года назад +1

    Very interesting! Thanks! 🙃

  • @benkio
    @benkio 3 года назад +2

    Maybe in scala 4 they will remove all the stuff that throw exceptions

  • @MonalJain94
    @MonalJain94 3 года назад +1

    What is the benefit of using functions for creating collections? Why not have implementations similar to Java?

    • @rockthejvm
      @rockthejvm  3 года назад +4

      The benefits include infinite collections and a new mindset.

  • @Dr_Dude
    @Dr_Dude 3 года назад

    nice!