#dominoforever | Product Ideas Portal

Welcome to the #dominoforever Product Ideas Forum! The place where you can submit product ideas and enhancement request. We encourage you to participate by voting on, commenting on, and creating new ideas. All new ideas will be evaluated by HCL Product Management & Engineering teams, and the next steps will be communicated. While not all submitted ideas will be executed upon, community feedback will play a key role in influencing which ideas are and when they will be implemented.

For more information and upcoming events around #dominoforever, please visit our Destination Domino Page

Improve LotusScript Lists with something like a size or count property

I love using Lists in LotusScript, as well as HashMaps in Jave etc.

There are a few things though that I've always missed with Lists:

  • a size or count property/option telling us how many elemts are stored in a List

  • if that is not possible for whatever reason we should at least have a simple option to tell whether there are any elements in a list, or if it is empty / has no elements

  • Guest
  • Aug 13 2021
  • Needs Review
  • Attach files
  • Guest commented
    18 Oct, 2021 01:58pm

    Simply wrap the list in a class which delivers you counter and an approximate size .

    Doing this since long.

  • Guest commented
    8 Oct, 2021 01:07am

    LotusScript is lacking in many ways, but its paltry data structures are high on the list for sure.

  • Guest commented
    13 Aug, 2021 12:38pm

    Re: "Counting elements is so easy and fast..."

    Yes true, still every other equivalent like Java's HashMap has that option, so why not List?

    Also I know how to find out whether a List has any elements at all, again using a forall loop.

    Btw, right now I'm mostly using a counter while filling the list, so again in the end I know how much is in there.

    But that is not the case; I still think that this is a missing piece in a mature language

  • Guest commented
    13 Aug, 2021 12:21pm

    Counting elements is so easy and fast, under one second for 2 million elements.


    ForAll ListNameElement In Listname


    End ForAll