Shorthand

Convenience macros to eliminate laborious typing.

Installation

Add shorthand as a dependency in your project in your mix.exs file:

def deps do
[
{:shorthand, "~> 0.0.1"}
]
end

Usage

See the docs for more examples

defmodule MyModule do
import Shorthand
defstruct name: nil, age: nil
def my_func(map(name, age, _height)) do
build_struct(MyModule, name, age)
end
end