ObjectExtensions.cs
public static class ObjectExtensions {
public static T Tap<T>(this T t, System.Action<T> f) {
f(t);
return t;
}
}
これでタップし放題ですね
var multiplied = numbers.Select((e) => e * 10).Tap((list) => Debug.Log(list));
Go to list of users who liked
More than 5 years have passed since last update.
public static class ObjectExtensions {
public static T Tap<T>(this T t, System.Action<T> f) {
f(t);
return t;
}
}
これでタップし放題ですね
var multiplied = numbers.Select((e) => e * 10).Tap((list) => Debug.Log(list));
Register as a new user and use Qiita more conveniently
Go to list of users who liked