Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

As in Elixir/Erlang it would nice if they could be define separately.

    def [] in Integer => index
      # ...
    end

    def [] in Integer => start, Integer => length
      # ...
    end

    def [] in Range => range
      # ...
    end


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: