Better HN
topnewbestaskshowjobs
Log inSign up

manuc66

3 karma · joined Jul 7, 2021 (5y ago) · 7 submissions

Submissions

comment 1y ago · link · parent

@Bogdanp maybe this is another way to express it:

public static class EnumerableExtensions {

public static IEnumerable<TR> SelectNotNull<T, TR>( this IEnumerable<T> source, Func<T, TR?> fn) where TR : class { return source.Select(fn) .Where(it => it != null) .OfType<T>(); }

public static IEnumerable<TR> SelectNotNull<T, TR>( this IEnumerable<T> source, Func<T, TR?> fn) where TR : struct { return source.Select(fn) .Where(it => it != null) .Select(item => item.Value); } }

comment 1y ago · link · parent

Interesting to follow as a side reading of this article : What's Wrong with The NY Times Article on ADHD - #1 (of 4 Parts) - https://www.youtube.com/watch?v=-8GlhCmdkOw

comment 1y ago · link · parent

"This investigation was a collaboration between myself and my colleagues."

comment 2y ago · link · parent

Have you tried https://www.freshrss.org/ ?