Collection

Tango.Modules.CollectionModule

Tango.Modules.Collection.Linq

This module provides several methods to works with IEnumerable<T> type.

When possible, the examples will use the extension method format, all of them can be replaced by module method without change any behavior.

WARNING

  1. The IEnumerable<T> is a lazy load type, this module works with it, but in some cases is necessary an evaluation of the collection. The methods that performs an evaluation are sinalized.

  2. Some methods appling a given function to more than one collection, in these cases the loop will runs only until reach the size of smallest collection.

  3. Some methods has different parameter order in extension and module versions. It occurs because the static methods in modules are optimized to partial application rather than extension methods that wants to improve usability to make a similar System.Linq sintax.

Methods

Last updated