Skip to content

Commit 7305e2c

Browse files
committed
feat: implement ofType function
1 parent a24e93d commit 7305e2c

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2121
* `chunkBySize`
2222
* `merge`
2323
* `choose`
24+
* `ofType`
2425

2526
## [0.2.0] - 2024-11-23
2627

src/FSharp.Control.R3/Observable.fs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ let inline mapi ([<InlineIfLambda>] f : int -> 't -> 'r) source = ObservableExte
5656
/// Merges two observable sequences into one observable sequence
5757
let inline merge (source1, source2) = ObservableExtensions.Merge (source1, source2)
5858

59+
let inline ofType<'T, 'R> (source) = ObservableExtensions.OfType<'T, 'R> (source)
60+
5961
/// Returns an observable sequence that contains only a single element
6062
let inline singleton item = Observable.Return<'T> item
6163

0 commit comments

Comments
 (0)