Skip to content

andrewtimberlake/shorthand

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 

Shorthand

Convenience macros to eliminate laborious typing. Provides macros for short map, string keyed map, keyword lists, and structs (ES6 like style)

Installation

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

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

Usage

See the docs for more examples

defmodule MyModule do
  import Shorthand

  defstruct name: nil, age: nil

  def my_func(m(name, age, _height)) do
    st(MyModule, name, age)
  end
end

About

Convenience macros to eliminate laborious typing.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages