Skip to Main Content
HCL Domino 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

Status Needs Review
Workspace Domino Designer
Categories LotusScript
Created by Guest
Created on Aug 13, 2021

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

  • Attach files
  • Admin
    Thomas Hampel
    Reply
    |
    Sep 11, 2023
    "Simply wrap the list in a class which delivers you counter and an approximate size"

    Would you mind posting this class as an example?

  • Guest
    Reply
    |
    Oct 18, 2021

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

    Doing this since long.

  • Guest
    Reply
    |
    Oct 8, 2021

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

  • Guest
    Reply
    |
    Aug 13, 2021

    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
    Reply
    |
    Aug 13, 2021

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

    Counter=0

    ForAll ListNameElement In Listname

    Counter=Counter+1

    End ForAll