mirror of
https://github.com/rjNemo/exercism-elixir
synced 2026-06-06 02:16:48 +00:00
chessboard refactor
This commit is contained in:
parent
c6177f9612
commit
50f5346cc4
1 changed files with 1 additions and 3 deletions
|
|
@ -5,7 +5,5 @@ defmodule Chessboard do
|
||||||
|
|
||||||
def ranks, do: Enum.to_list(rank_range())
|
def ranks, do: Enum.to_list(rank_range())
|
||||||
|
|
||||||
def files do
|
def files, do: file_range() |> Enum.map(&<<&1>>)
|
||||||
file_range() |> Enum.map(&<<&1>>)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue