Menu

#7 Indexing lists with Long

open
nobody
None
5
2004-09-08
2004-09-08
No

We hacked MillScript (in MapAwareTools.java) to
support Number when indexing a List. Strictly speaking
this is wrong. We should only support indexing by
integral types i.e. Integer, Long, BigInteger, BigDecimal
(with no fractional part), and the other wrapper types
such as Short etc.

We should have a convertToInt function that is
responsible for enforing the check.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB
Gen AI apps are built with MongoDB Atlas
Atlas offers built-in vector search and global availability across 125+ regions. Start building AI apps faster, all in one place.