9

We Indians are more than SMART

Comments
  • 3
    This is a prime example of when NOT to use stream also how the fuck do you pronounce that name
  • 3
    @Torbuntu aha laquamarine gotcha thanks
  • 1
    @jalebiBhai my initial guess was "lacque-minor-xayah" haha, thanks
  • 2
    @BindView As an Indian, even i am finding hard to pronounce the name xD
  • 1
    @BindView lucks me nur (nursery) psy ah

    it is hard for me too, to get the part after 'S'
  • 3
    You could use "optional". For example ifpresent or getifpresent etc. when using stream api.
  • 0
    Coming from Haskell, it would be something like: getById i = listToMaybe $ id >>> (== i)

    Yup that's a list filter, comparison, a "get first", and an optional return type... and can be applied to any data structure with an id.
  • 0
    @BindView Issac Daniel is a pretty simple name tbh
  • 0
    @bittersweet if i ever see you using Maybe i will kick you in the balls (:
  • 0
    @BindView What's wrong with Maybe?
  • 0
    @bittersweet its so inconsistent. No it doesnt cause problems (haskell💚) but come on, its like you dont know the code you write.
  • 0
    @BindView Maybe is godsend when interacting with external data.

    Database, fetch me the first user who loves the color pink — database query function responds with "sure thing I'll look for it, and MAYBE I'll find you one".

    Maybe is a superior "result or null". It's an exception which doesn't need to be thrown or caught. It's the simplest monad, and the easiest way to start understanding monads.
Add Comment