Hi,
I'd like to understand how a function is working.
I found it in a Watch Face example, a very interesting one, but i did not find any explanation in doc.
Where to search for ?
var myVar= {
"A" => 65,
"B" => 66,
"C" => 67,
"D" => 68,
}[someArray[1]].toChar().toString();
if someArray[1] is A , so myVar = 65
How is it working ??
(i understand the .toChar().toString(), the test between what's in someArray and the Dic, ...)
I am asking myself if i could change some "switch/if else" with this, but i'd like to understand well how it works.
Any idea where i could find it in the Docs?
thanks