Enhanced C#
Loyc library documentation
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Static Public Member Functions | List of all members
Loyc.Collections.MutableListExtensionMethods.ICollectionExt Class Reference

Extension methods for ICollection{T}. More...


Source file:

Remarks

Extension methods for ICollection{T}.

Static Public Member Functions

static void AddRange< K > (this ICollection< K > set, IEnumerable< K > list)
 Adds data to a set (set.Add(value) for all values in a sequence.) More...
 
static int RemoveRange< K > (this ICollection< K > set, IEnumerable< K > list)
 Removes data from a set (set.Remove(value) for all values in a sequence.) More...
 
static R[] SelectArray< T, R > (this ICollection< T > input, Func< T, R > selector)
 Maps a list to an array of the same length. More...
 

Member Function Documentation

static void Loyc.Collections.MutableListExtensionMethods.ICollectionExt.AddRange< K > ( this ICollection< K >  set,
IEnumerable< K >  list 
)
inlinestatic

Adds data to a set (set.Add(value) for all values in a sequence.)

static int Loyc.Collections.MutableListExtensionMethods.ICollectionExt.RemoveRange< K > ( this ICollection< K >  set,
IEnumerable< K >  list 
)
inlinestatic

Removes data from a set (set.Remove(value) for all values in a sequence.)

Returns
The number of items removed (that had been present in the set).
static R [] Loyc.Collections.MutableListExtensionMethods.ICollectionExt.SelectArray< T, R > ( this ICollection< T >  input,
Func< T, R >  selector 
)
inlinestatic

Maps a list to an array of the same length.