3 ms·
[] is an indexed data operator for Lists, Maps and other collections. It isn't a general property access operator like in JavaScript. It makes it possible to ha
by spankalee 7y ago
[] is an indexed data operator for Lists, Maps and other collections. It isn't a general property access operator like in JavaScript. It makes it possible to have user-defined list implementations with the ergonomics of built-in arrays, and drastically increases readability over Java's get() and set() methods. Don't knock it.