How to transform list wherein position of the symbol encoded by number at second position
{{a,6},{z,1},{g,2},{y,12}}
to string
zg---a-----y
How to transform list wherein position of the symbol encoded by number at second position
{{a,6},{z,1},{g,2},{y,12}}
to string
zg---a-----y