[x] On the assumption that "pattern matching" in C# 7 will only consist of basic type-switching within the switch statement. Succinc<T> will need to continue supporting it's own pattern matching. With the new tuple features being added to the language, Succinc<T> should support the new ValueTuple types.
[x] The Cons method, for splitting an enumeration into a head and tail should be replaced with a tuple-based one:
public (T head, IConsEnumerable<T> tail) Cons<T>(this IEnumerable<T> collection);
See #15 for details of this change.
[x] Test local functions against the various Lambda etc methods.
[x] Investigate whether local functions, tuples or type-switching could be used with the source to improve the code/performance.
switch
statement. Succinc<T> will need to continue supporting it's own pattern matching. With the new tuple features being added to the language, Succinc<T> should support the newValueTuple
types.Cons
method, for splitting an enumeration into a head and tail should be replaced with a tuple-based one:See #15 for details of this change.
Lambda
etc methods.