mirror of
https://github.com/netfun2000/hipudding-teslamate.git
synced 2026-02-27 09:44:28 +08:00
6 lines
161 B
Elixir
6 lines
161 B
Elixir
defmodule Core.Dependency do
|
|
def call(m, f, a \\ [])
|
|
def call({m, a}, fun, args), do: apply(m, fun, [a] ++ args)
|
|
def call(m, f, a), do: apply(m, f, a)
|
|
end
|