Ad
  • Custom User Avatar

    I don't know Go at all. Interesting that the "return" seems to be optional? and there is only "end" and never "begin"! :)

    you use

    char_count = chart_count.select{...}

    can we simply ".size"? like

    return "char_count.select{'|k, v| v > 1'}.size"

    is it legal in GO?

  • Custom User Avatar

    Most one-liners are difficult to read but this one is clear.

    What does ruby type String.group_by do?