Skip to main content
Known Participant
August 27, 2022
Solved

find letter series {a , bc, def, ghij, klmno __________________________ a-z}

  • August 27, 2022
  • 7 replies
  • 5 views

A,                                             1

BC,                                          2

DEF,                                        3

GHIJ,                                       4

KLMNO                                   5

---------                                     --

A to Z                                      26

Best answer by harshitb6843

a!forEach(
  items: enumerate(8),
  expression: joinarray(
    a!forEach(
      items: enumerate(fv!index) + sum(enumerate(fv!index)) + 1,
      expression: index(
        "abcdefghijklmnopqrstuvwxyz",
        fv!item,
        {}
      )
    )
  )
)

7 replies

stefanhelzle0001
Brainy
August 28, 2022

Is that a real use case or just a coding challenge?

Known Participant
August 28, 2022

This is challenge..our requirement..this logic is possible in our appini

Inspiring
August 29, 2022

what exactly you are looking for. Only the count of charaters in a string? if yes, then you can use len() function.

Known Participant
August 29, 2022

I want above letter series

harshitb6843
Brainy
August 29, 2022

a!forEach(
  items: enumerate(8),
  expression: joinarray(
    a!forEach(
      items: enumerate(fv!index) + sum(enumerate(fv!index)) + 1,
      expression: index(
        "abcdefghijklmnopqrstuvwxyz",
        fv!item,
        {}
      )
    )
  )
)

Known Participant
August 29, 2022

thank you