Thread
#stdlib
    e

    elect

    1 month ago
    also
    averageBy{ .. }
    on iterables, as shortcut instead of
    map{ }.average()
    r

    Roukanken

    1 month ago
    You can simply create an extension function that would do that
    Same for the range thingie, actually
    e

    elect

    1 month ago
    almost everything can be solved manually, but adding to the std-lib would make it useful for everyone
    r

    Roukanken

    1 month ago
    right, my bad, didn't realize we were in #stdlib
    e

    elect

    1 month ago
    np
    e

    ephemient

    1 month ago
    it's not clear what the return type should be
    e

    elect

    1 month ago
    1- we can infer 2- we have a lambda resolution by return type annotation available We can apply the same logic as
    count{ }