Click or drag to resize
DataSegment Methods

The DataSegment type exposes the following members.

Methods
  NameDescription
Public methodStatic member|Any|T
A complete active pattern that extracts the kind and data from a `DataSegment` value. This makes it easier to write functions that only need data: let sumAny = function DataSegment.Any(_, data) -> Stats.sum data
Public methodStatic member|Complete|Incomplete|a
Complete active pattern that makes it possible to write functions that behave differently for complete and incomplete segments. For example, the following returns zero for incomplete segments: let sumSegmentOrZero = function | DataSegment.Complete(value) -> Stats.sum value | DataSegment.Incomplete _ -> 0.0
Public methodStatic memberGetDataa
Returns the data property of the specified `DataSegment<T>`
Public methodStatic memberGetKinda
Returns the kind property of the specified `DataSegment<T>`
Top
See Also