Skip to content

Commit 7346c07

Browse files
committed
SeqT.hoist as alias of SeqT.ofSeq
1 parent 7e71844 commit 7346c07

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/FSharpPlus/Data/Seq.fs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,8 @@ module SeqT_V2 =
246246
| _ -> () } }
247247

248248
/// Transforms a regular sequence into a SeqT, driven by the return type.
249-
let inline hoist (source: seq<'T>) : SeqT<'``Monad<bool>``, 'T> = wrap (result source: '``Monad<seq<'T>>``)
249+
/// An alias of `ofSeq`.
250+
let inline hoist (source: seq<'T>) : SeqT<'``Monad<bool>``, 'T> = ofSeq source
250251

251252
[<EditorBrowsable(EditorBrowsableState.Never)>]
252253
let inline runThen<'T, .. > (f: ResizeArray<'T> -> 'R) (source: SeqT<'``Monad<bool>``, 'T>) : '``Monad<'R>`` =

0 commit comments

Comments
 (0)