Skip to content

Commit 2aac3df

Browse files
committed
Rename bind to mbind and remove fish operator
1 parent 36837c2 commit 2aac3df

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/combinators/bind.jl

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,3 @@ function Base.rand(rng::AbstractRNG, ::Type{T}, d::Bind) where {T}
3333
y = rand(rng, T, d.k(x))
3434
return y
3535
end
36-
37-
38-
# ToDo: Remove `bind` (breaking).
39-
@noinline function bind(μ, k)
40-
Base.depwarn("`foo(μ, k)` is deprecated, use `mbind(k, μ)` instead.", :bind)
41-
mbind(k, μ)
42-
end
43-
44-
45-
# ToDo: Remove `↣` (breaking): It looks too similar to the `>=>` "fish"
46-
# operator (e.g. in Haskell) that is typically understood to take two monadic
47-
# functions as an argument, while a bind take a monad and a monadic functions.
48-
@deprecate (μ, k) mbind(μ, k)
49-
export

0 commit comments

Comments
 (0)