Standard LibraryFunctionstake_whileOn this pagetake_while take_while(Object container, Object f) -> Object Takes the leading elements satisfying a predicate. Parameters container: The source container. f: The predicate to test. Returns A new container containing the matching prefix. Example take_while([1, 2, 3, 4], odd)//-> [1]