takeWhile

inline fun takeWhile(predicate: (Float) -> Boolean): FloatList(source)

Returns a new FloatList containing the first elements that satisfy the given predicate.

Return

A FloatList containing the initial contiguous elements matching predicate.

Parameters

predicate

Function that tests each element for a condition.