Skip to content

Commit 7274dff

Browse files
authored
Merge pull request #89 from tkoolen/tk/fix-reduce-compat
Fix #88, broken on 0.6 due to reduce-with-kwarg usage.
2 parents 18448ba + e750b74 commit 7274dff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/examples/threading.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ macro >(exs...)
2222
isexpr(ex, :block) ? thread(x, rmlines(ex).args...) :
2323
Expr(:call, ex, x)
2424

25-
thread(x, exs...) = reduce(thread, exs, init=x)
25+
thread(x, exs...) = Compat.reduce(thread, exs, init=x)
2626

2727
esc(thread(exs...))
2828
end
@@ -42,7 +42,7 @@ macro >>(exs...)
4242
isexpr(ex, :block) ? thread(x, rmlines(ex).args...) :
4343
Expr(:call, ex, x)
4444

45-
thread(x, exs...) = reduce(thread, exs, init=x)
45+
thread(x, exs...) = Compat.reduce(thread, exs, init=x)
4646

4747
esc(thread(exs...))
4848
end

0 commit comments

Comments
 (0)