I seek some explanation about how below code, especially code line "List.First(List.Select(values, each _{0}=input)){1}" get executed, for any input value say "XX123BYY". I got the results but dont understand how this code line get executes.
Also significance of {0} after each _.
Thanks.
= (input)=>
let
values = {
{"A", "Apple"},
{"B", "Boy"},
{"C", "Cat"},
{"D", "Dog"},
{"E", "Elephant"},
{"F", "Fox"},
{input, "Undefined"}
},
Result = List.First(List.Select(values, each _{0}=input)){1}
in
Result
Also significance of {0} after each _.
Thanks.
= (input)=>
let
values = {
{"A", "Apple"},
{"B", "Boy"},
{"C", "Cat"},
{"D", "Dog"},
{"E", "Elephant"},
{"F", "Fox"},
{input, "Undefined"}
},
Result = List.First(List.Select(values, each _{0}=input)){1}
in
Result