The function that takes and drops

I always forget the name of the function that efficiently returns the following: (seq.take(n),seq.drop(n))
There is a cousin function, span, which returns a pair of the sequences returned by filter and filterNot

found it. It is called splitAt.
Now the next time (6 months from now) I search, google with find this Scala Users post.

1 Like

Yeah, it’d be really nice to have some equivalent to Hoogle for Scala…