diff --git a/docs/conceptual/control.observable-module-[fsharp].md b/docs/conceptual/control.observable-module-[fsharp].md index 31576d36..caad6a56 100644 --- a/docs/conceptual/control.observable-module-[fsharp].md +++ b/docs/conceptual/control.observable-module-[fsharp].md @@ -41,8 +41,10 @@ module Observable |[scan](https://msdn.microsoft.com/library/a51f3116-1588-442a-b200-9e370155b9ff)
**: ('U -> 'T -> 'U) -> 'U -> IObservable<'T> -> IObservable<'U>**|Returns an observable which, for each observer, allocates an item of state and applies the given accumulating function to successive values arising from the input. The returned object will trigger observations for each computed state value, excluding the initial value. The returned object propagates all errors arising from the source and completes when the source completes.| |[split](https://msdn.microsoft.com/library/a628f66b-8712-4a5d-b9fc-ba2f323cb333)
**: ('T -> Choice<'U1,'U2>) -> IObservable<'T> -> IObservable<'U1> * IObservable<'U2>**|Returns two observables which split the observations of the source by the given function. The first will trigger observations for which the splitter returns **Choice1Of2**. The second will trigger observations **y** for which the splitter returns **Choice2Of2**. The splitter is executed once for each subscribed observer. Both also propagate error observations arising from the source and each completes when the source completes.| |[subscribe](https://msdn.microsoft.com/library/19e66519-0b77-4396-8159-67ec47be0a63)
**: ('T -> unit) -> IObservable<'T> -> IDisposable**|Creates an observer which subscribes to the given observable and which calls the given function for each observation.| + **The following code example shows how to use observables. The ObserverSource class defined in this example is a general-purpose reusable class that you can use as a source of observable events. Examples of using some of the functions in this module are shown here; for functions that are not demonstrated here, you can refer to the code examples in [Control.Event Module (F#)](Control.Event-Module-%5BFSharp%5D.md).** [!code-fsharp[Main](snippets/fsobservables/snippet1.fs)] + ## Platforms Windows 8, Windows 7, Windows Server 2012, Windows Server 2008 R2 @@ -53,4 +55,4 @@ Windows 8, Windows 7, Windows Server 2012, Windows Server 2008 R2 Supported in: 2.0, 4.0, Portable ## See Also -[Microsoft.FSharp.Control Namespace (F#)](Microsoft.FSharp.Control-Namespace-%5BFSharp%5D.md) \ No newline at end of file +[Microsoft.FSharp.Control Namespace (F#)](Microsoft.FSharp.Control-Namespace-%5BFSharp%5D.md)