forked from eventhelix/FSharp.Collections.Immutable
-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Like
[<Extension>]
type SliceExtensions =
[<Extension>]
static member GetSlice(source: FlatList<'t>, from: int option, ``to``: int option) =
let from = from |> Option.defaultValue 0
let ``to`` = ``to`` |> Option.defaultValue source.Length
source
|> Seq.skip from
|> Seq.take (``to`` - from + 1)
|> Seq.toFlatListMetadata
Metadata
Assignees
Labels
No labels