public ImList <int>[] AllMoveOptions() { if (FirstRollResult == SecondRollResult) { return new [] { ImList <int> .Create(Enumerable.Repeat(FirstRollResult, 4)) } } ; return(new [] { ImList <int> .Create(FirstRollResult, SecondRollResult), ImList <int> .Create(SecondRollResult, FirstRollResult) }); } }
public static ImList <T> ToImList <T>(this IEnumerable <T> @this) { return(ImList <T> .Create(@this)); }