私はラムダ式を書く初心者で、次の問題があります。
List<int> lifeField;
I want to find index of those members, that correspond to next condition:
(((number % (10 * currentMove)) == 1) || ((number % (10 * currentMove)) == 2))
where number is member of List and currentMove is integer - 0,1,2
例えば:
if it is first move
currentMove = 0
I search number 1 or 2
if it is second move
I search numbers 11,21
……これをラムダでここに書く方法を見つけたい....または他の関数で
int indexOfLife = Array.FindIndex(lifeField, ?????????);