You are viewing a single comment's thread. Return to all comments →
c# linq, yield
public static IEnumerable matchingStrings(List stringList, List queries) { foreach (var q in queries) { yield return stringList.Count(j=>j==q); } }
Seems like cookies are disabled on this browser, please enable them to open this website
Sparse Arrays
You are viewing a single comment's thread. Return to all comments →
c# linq, yield
public static IEnumerable matchingStrings(List stringList, List queries) {
foreach (var q in queries) { yield return stringList.Count(j=>j==q); } }