MHN
Add a comment on Hacker News →
2 of 137 comments
  1. idk probably?

  2. When it says "arrays, which may be thought of as functions whose domains are isomorphic to contiguous subsets of the integers", is it saying that this:

        const list = ['a', 'b', 'c']
    
    is syntactic sugar for expressing something like this:

        function list(index) {
          switch (index) {
            case 0: return 'a'
            case 1: return 'b'
            case 2: return 'c'
          }
        }