Skip to main content
August 27, 2022
Solved

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

  • August 27, 2022
  • 7 replies
  • 0 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
August 28, 2022

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

August 28, 2022

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

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.

August 29, 2022

I want above letter series

harshitb6843
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,
        {}
      )
    )
  )
)

August 29, 2022

thank you