Re:Swift is like Kotlin
by derefr on Thursday May 18, 2017 @12:40AM
(#14364852)
What does a Guava two-Integer-element array literal look like?
[ Parent
| on HN ]
Sorry, I didn't explain myself well.
Range.closed(1,5) is the syntax used to refer to what a mathematician would call [1,5].
Guava is just a Java library. In Java 9, a two-Integer-element list literal will be List.of(9000, 9001).