Skip to main content
2 of 2
CharacterRange conforms to image
ssch
  • 16.7k
  • 2
  • 54
  • 90

Map function on the specified location

list = Symbol /@ CharacterRange["a", "n"];
MapAt[Style[#, Red] &, list, List /@ {4, 9, 2}];
MapAt[Style[#, Green] &, %, List /@ {3, 5, 7}];
MapAt[Style[#, Blue] &, %, List /@ {8, 1, 6}]

enter image description here

I am sure there is a better way do this, could you give any better ideas?

expression
  • 5.7k
  • 1
  • 20
  • 47