app finished!
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-01-17 19:05:18 +00:00
parent 25c0503504
commit 2a8dfb787e
2 changed files with 198 additions and 51 deletions

View File

@@ -11,10 +11,7 @@ defmodule Utils do
end
end
def alter_name(name, part) do
String.to_atom(Atom.to_string(name) <> part)
end
def alter_name(name, part), do: :"#{name}#{part}"
def beb_broadcast(m, dest), do: for(p <- dest, do: safecast(p, m))
def register_name(name, pid, link \\ true) do
@@ -46,7 +43,7 @@ defmodule Utils do
IO.puts(msg)
end
end
defmacro or_state(val, do: expr) do
quote do
case unquote(val) do