Skip to main content
New Participant
Mar 29, 2023 4:08 AM UTC
Solved

Approach

Input: "MAHESH,

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

how to approach this?

sanchitg0002
Inspiring
Mar 29, 2023 4:33 AM UTC

char(code("MAHESH"))

4 replies

sanchitg0002
Inspiring
Mar 29, 2023 4:33 AM UTC

char(code("MAHESH"))

adityag9712
Inspiring
Mar 29, 2023 6:34 AM UTC

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

- Aditya
harshitb6843
Brainy
Mar 30, 2023 5:45 AM UTC

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

adityag9712
Inspiring
Mar 30, 2023 6:10 AM UTC

Exactly same  

- Aditya