コード例 #1
0
 static IEnumerable <T> UniformStream <T>(this IPolyrand src, Interval <T> domain, Func <T, bool> filter = null)
     where T : struct
 {
     if (filter != null)
     {
         return(src.FilteredStream(domain, filter));
     }
     else
     {
         return(src.UnfilteredStream(domain));
     }
 }
コード例 #2
0
        static IEnumerable <T> UniformStream <T>(this IPolyrand src, Interval <T>?domain = null, Func <T, bool> filter = null)
            where T : struct
        {
            var configured = domain.Configure();

            if (filter != null)
            {
                return(src.FilteredStream(configured, filter));
            }
            else
            {
                return(src.UnfilteredStream(configured));
            }
        }