How to join particular elements from 2 different lists

Certified Senior Developer

I have two local variables storing list of numbers:

How can I get coordinates from this like

1,1

2,1

3,1

4,1

based on column and row value together?

  Discussion posts and replies are publicly visible

Parents Reply
  • To be fair, merge() isn't that intuitive, even if you knew that was the name you should be searching for.

    @azlins0001 - Sanchit is correct, you can use the merge() function which takes two lists - like those in each of columnPosiitons and rowPositions, and merges them by creating a "list of lists" where the items listed at each index are brought together into their own list:

    a!localVariables(
      local!columnPositions: { 1, 2, 3, 4 };local!rowPositions: { 1, 1, 1, 1 },
      fn!merge(
        local!columnPositions,
        local!rowPositions
      )
    )

    .;..which results in;

Children