Skip to main content
shukurs0001
August 9, 2022
Solved

Convert a string to array.

  • August 9, 2022
  • 7 replies
  • 0 views

I have a string that need to convert into an array.

E.g: 
local!name: "shukur", - > {"s","h","u","k","u","r"}

How can we add that?

    Best answer by harshitb6843

    a!forEach(
      items: enumerate(len("shukur")),
      expression: index("shukur",fv!index,{})
    )

    7 replies

    harshitb6843
    August 9, 2022

    a!forEach(
      items: enumerate(len("shukur")),
      expression: index("shukur",fv!index,{})
    )

    stefanhelzle0001
    Brainy
    August 9, 2022

    Using more advanced features like partial evaluation this could be solved like this

    mid("shukur", _, 1)(1 + enumerate(len("shukur")))

    docs.appian.com/.../Expressions.html

    mikes0011
    Brainy
    August 9, 2022

    guys... guys...

    char(code("shukur"))

    The Expression Guru
    harshitb6843
    August 9, 2022

    [emoticon:458682de9e4d4e7c94377c4fe2884528]

    mikes0011
    Brainy
    August 9, 2022

    every time the same thing gets asked, lol

    The Expression Guru