-
Notifications
You must be signed in to change notification settings - Fork 1
takeWhile
Litichevskiy Dmitriy edited this page Jan 27, 2019
·
1 revision
Method returns elements from an iterable as long as a specified condition is true, and then skips the remaining elements.
Kind: instance method of Manipula
Param | Type | Description |
---|---|---|
predicate | extendedLogicalPredicate |
A function to test each source element and its number for a condition. |
- .aggregate(accumulatorInitialValue, aggregateFunction)
- .all(predicate)
- .any([predicate])
- .append(element)
- .average([selector])
- .concat(second)
- .contains(value, [comparer])
- .count([predicate])
- .distinct([comparer])
- .distinctBy(keySelector, [comparer])
- .elementAt(index)
- .elementAtOrDefault(index)
- .except(second, [comparer])
- .first([predicate])
- .firstOrDefault([predicate])
- .groupBy(keySelector, [options])
- .intersect(second, [comparer])
- .last([predicate])
- .lastOrDefault([predicate])
- .max([selector])
- .min([selector])
- .orderBy(keySelector, [compareFunction])
- .orderByDescending(keySelector, [compareFunction])
- .prepend(element)
- .reverse()
- .select(selector)
- .selectMany(selector)
- .batch(size, [resultSelector])
- .sequenceEqual(second, [comparer])
- .single([predicate])
- .singleOrDefault([predicate])
- .skip(count)
- .skipLast(count)
- .skipWhile(predicate)
- .sum([selector])
- .take(count)
- .takeLast(count)
- .takeWhile(predicate)
- .thenBy(keySelector, [compareFunction])
- .thenByDescending(keySelector, [compareFunction])
- .toArray()
- .toArrayAsync()
- .toMap(keySelector, [options])
- .toMapAsync(keySelector, [options])
- .toSet([comparer])
- .toSetAsync([comparer])
- .union(second, [comparer])
- .where(predicate)
- .from(source)
- .fromGeneratorFunction(fn, ..args)
- .range(start, count)
- .repeat(element, count)