• perchance@lemmy.worldM
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    22 days ago

    You might be looking for one of the following:

    output
      [p = person.selectMany(2).joinItems(", ")] // outputs two names with comma between, like "Jane, Bob"
      [p = person.selectUnique(2).joinItems(", ")] // same as above, but ensures that the two selected names are unique
      [p = person.selectUnique(2), ""] The first selected name is [p[0]] and the second is [p[1]]. // example of selecting two names, and then using them individually later on in the output
    

    If not, let me know what specifically you’re trying to achieve and I or someone else here will try to help