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 ...

Maintainers

Dave Thomas <dave@pragprog.org>

Links

License

Same as Elixir
  • 627
    downloads
    this version
  • 0
    downloads
    yesterday
  • 0
    downloads
    last 7 days
  • 948
    downloads
    all time

Versions (3)

Dependencies (0)

Config

mix.exs

Checksum

Build Tools

mix

Owners

Dependents (1)

hmc5883l, show all...