Skip to content

Commit bd6884d

Browse files
committed
rename variable h to head and t to tail
1 parent 1d4442b commit bd6884d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/shopify/enumerable.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ defmodule Shopify.Enumerable do
3737
end
3838
end
3939

40-
def reduce(%Shopify.Enumerable{data: [h | t]} = enum, {:cont, acc}, fun) do
41-
reduce(%{enum | data: t}, fun.(h, acc), fun)
40+
def reduce(%Shopify.Enumerable{data: [head | tail]} = enum, {:cont, acc}, fun) do
41+
reduce(%{enum | data: tail}, fun.(head, acc), fun)
4242
end
4343
end
4444
end

0 commit comments

Comments
 (0)