Snippets created by Ruslan Enikeev

  • Continue sequence after applying Seq.takeWhile, skip, take, etc

    Sometimes you need to take more elements from a sequence, e.g. look at This solution allows fetching elements from the same sequence after applying takeWhile, skip, take and other sequence functions. However, need to remember to call function with right parameter: use 'true' to include current element into result sequence (after takeWhile for example)

    2 people like this

    Posted: 11 months ago by Ruslan Enikeev