Skip to main content
March 29, 2023
Solved

Approach

  • March 29, 2023
  • 4 replies
  • 0 views

Input: "MAHESH,

Output: {"M","A","H","E","S","H"}

how to approach this?

Best answer by sanchitg0002

char(code("MAHESH"))

4 replies

March 29, 2023

char(code("MAHESH"))

adityag9712
March 29, 2023

Your code is much optimized, but here is the alternative of above code, 

a!forEach(
  items: enumerate(len("MAHESH")) + 1,
  expression: index("MAHESH", fv!item, {})
)

harshitb6843
March 30, 2023

Next time, please try to look for existing solutions before posting a question - community.appian.com/.../convert-a-string-to-array

adityag9712
March 30, 2023

Exactly same