Skip to content

Commit 1064eba

Browse files
committed
add queue join
1 parent 5150f33 commit 1064eba

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/qex.ex

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,9 @@ defmodule Qex do
7676
{%__MODULE__{data: q1}, %__MODULE__{data: q2}}
7777
end
7878
end
79+
80+
@spec join(t, t) :: t
81+
def join(%__MODULE__{data: q1}, %__MODULE__{data: q2}) do
82+
%__MODULE__{data: :queue.join(q1, q2)}
83+
end
7984
end

0 commit comments

Comments
 (0)