C# Class Scriban.Helpers.ArrayFunctions

Array functions available through the object 'array' in scriban.
Datei anzeigen Open project: lunet-io/scriban Class Usage Examples

Public Methods

Method Description
Add ( object value, IList list ) : IList
AddRange ( IEnumerable iterator, IList list ) : IList
First ( IEnumerable iterator ) : object
InsertAt ( int index, object value, IList list ) : IList
Join ( string delimiter, IEnumerable enumerable ) : string
Last ( IEnumerable iterator ) : object
RemoveAt ( int index, IList list ) : IList
Reverse ( IEnumerable iterator ) : IEnumerable
Size ( IEnumerable list ) : int
Uniq ( IEnumerable iterator ) : IEnumerable

Private Methods

Method Description
Map ( TemplateContext context, object input, string member ) : IEnumerable
Map ( TemplateContext context, ScriptNode callerContext, ScriptArray parameters ) : object
Register ( ScriptObject builtins ) : void
Sort ( TemplateContext context, object input, string member = null ) : IEnumerable
Sort ( TemplateContext context, ScriptNode callerContext, ScriptArray parameters ) : object

Method Details

Add() public static method

public static Add ( object value, IList list ) : IList
value object
list IList
return IList

AddRange() public static method

public static AddRange ( IEnumerable iterator, IList list ) : IList
iterator IEnumerable
list IList
return IList

First() public static method

public static First ( IEnumerable iterator ) : object
iterator IEnumerable
return object

InsertAt() public static method

public static InsertAt ( int index, object value, IList list ) : IList
index int
value object
list IList
return IList

Join() public static method

public static Join ( string delimiter, IEnumerable enumerable ) : string
delimiter string
enumerable IEnumerable
return string

Last() public static method

public static Last ( IEnumerable iterator ) : object
iterator IEnumerable
return object

RemoveAt() public static method

public static RemoveAt ( int index, IList list ) : IList
index int
list IList
return IList

Reverse() public static method

public static Reverse ( IEnumerable iterator ) : IEnumerable
iterator IEnumerable
return IEnumerable

Size() public static method

public static Size ( IEnumerable list ) : int
list IEnumerable
return int

Uniq() public static method

public static Uniq ( IEnumerable iterator ) : IEnumerable
iterator IEnumerable
return IEnumerable