1) I want to display the number of characters in the word
Eg: If the word is Choose then output should be C-1,h-1,o-2,s-1,e-1.
Can anyone help with complete code or is there any function? Thanks
Discussion posts and replies are publicly visible
a!localVariables( local!word: "choose", local!split: a!forEach( enumerate(len(local!word)), charat(local!word,fv!index) ), local!letterCount: a!forEach( local!split, { character: fv!item, count: length(wherecontains(fv!item,local!split)) } ), union(local!letterCount,local!letterCount) )
There may be a more efficient way to do it but this will work
Thanks a lot..