public static Collection <R, T> ToCollection <R, T>(this Stream <Weighted <R>, T> stream, bool immutable) where T : Time <T> where R : IEquatable <R> { var result = new DataflowCollection <R, T>(stream); result.immutable = immutable; return(result); }
public static Collection <R, T> AsCollection <R, T>(this Naiad.Dataflow.Stream <Weighted <R>, T> port, bool immutable) where R : IEquatable <R> where T : Time <T> { var result = new DataflowCollection <R, T>(port); result.immutable = immutable; return(result); }