Initial upload

This commit is contained in:
2022-08-24 14:28:45 +02:00
parent c67653ddee
commit 57bc7b0289
370 changed files with 18479 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
defmodule BasketballWebsite do
def extract_from_path(data, path) do
paths = String.split(path, ".")
root = Enum.at(paths, 0)
if length(paths) > 1 and data[root] do
extract_from_path(data[root], Enum.slice(paths, 1..-1) |> Enum.join("."))
else
data[root]
end
end
def get_in_path(data, path) do
Kernel.get_in(data, String.split(path, "."))
end
end