multidef 0.2.1

Lets you define multiple heads for the same function:

defmodule Test do

import MultiDef

mdef fred do { :init, val } -> fred {:double, val} { :double, val } -> IO.puts(val*2) a, b -> a+b end end

IO.inspect Test.fred 1, 2 ...

License

Same as Elixir

Downloads

0 20 40 60 80 Last 30 days, all versions
  • 1 641 1 641
    this version
  • 8 8
    yesterday
  • 28 28
    last 7 days
  • 2 272 2 272
    all time

Versions (3)

Dependencies (0)

Recent Activity

Show All Activities

Config

mix.exs
rebar.config
erlang.mk

Checksum

Build Tools

mix

Owners

Dependents (1)

hmc5883l, show all...