示例#1
0
 /// <summary>
 /// Returns a list containing all but the last `n` elements of the given `list`.
 /// <para />
 /// sig: Number -> [a] -> [a]
 /// </summary>
 /// <param name="n">The number of elements of `list` to skip.</param>
 /// <param name="list">The list of elements to consider.</param>
 /// <returns>A copy of the list with only the first `list.length - n` elements</returns>
 /// <see cref="R.TakeLast"/>
 /// <see cref="R.Drop"/>
 /// <see cref="R.DropWhile"/>
 /// <see cref="R.DropLastWhile"/>
 public static dynamic DropLast <TSource>(RamdaPlaceholder n, IEnumerable <TSource> xs)
 {
     return(Currying.DropLast(n, xs));
 }
示例#2
0
 /// <summary>
 /// Returns a list containing all but the last `n` elements of the given `list`.
 /// <para />
 /// sig: Number -> [a] -> [a]
 /// </summary>
 /// <param name="n">The number of elements of `list` to skip.</param>
 /// <param name="list">The list of elements to consider.</param>
 /// <returns>A copy of the list with only the first `list.length - n` elements</returns>
 /// <see cref="R.TakeLast"/>
 /// <see cref="R.Drop"/>
 /// <see cref="R.DropWhile"/>
 /// <see cref="R.DropLastWhile"/>
 public static dynamic DropLast(RamdaPlaceholder n = null, RamdaPlaceholder xs = null)
 {
     return(Currying.DropLast(n, xs));
 }
示例#3
0
 /// <summary>
 /// Returns a list containing all but the last `n` elements of the given `list`.
 /// <para />
 /// sig: Number -> [a] -> [a]
 /// </summary>
 /// <param name="n">The number of elements of `list` to skip.</param>
 /// <param name="list">The list of elements to consider.</param>
 /// <returns>A copy of the list with only the first `list.length - n` elements</returns>
 /// <see cref="R.TakeLast"/>
 /// <see cref="R.Drop"/>
 /// <see cref="R.DropWhile"/>
 /// <see cref="R.DropLastWhile"/>
 public static dynamic DropLast <TSource>(int n, IEnumerable <TSource> xs)
 {
     return(Currying.DropLast(n, xs));
 }