I am beginner who thought before doing the String Methods section of the course "You know what, let's test my skills". And boy my skills were tested. After I completed the challenge my jaw dropped, with the solution.

Had/Have this happened to y'all. Where you make something complicated and found out that there was a simple solution?

Solution

Show

My Code

Show

  • MrOzwaldMan@lemmy.ml
    hexagon
    ·
    10 months ago

    Problem with RTFM for me is I always forget what I had read the next day, how do you remember what you read?

    • boonhet@lemm.ee
      ·
      10 months ago

      I look up the exact behavior of some basic Kotlin collection lambdas all the time. Does filter return elements with true or false lambda return value? I'll just Google it instead of relying on my memory.