README.md
# Syntactic
A collection of macros to provide some syntactic sugars for `elixir`.
## List of macros
* `keys`
* `map`
## Examples
`keys`/`map` are usfule for geting values out of a keyword/map with mathing:
```elixir
defmodule SomeServer do
use GenServer
import Syntactic
# ...
def handle_cast(:action, state = map(socket, users)) do
# some logic
end
# ...
end
```
## Installation
Add syntactic to your list of dependencies in `mix.exs`:
```elixir
def deps do
[{:syntactic, "~> 0.0.1"}]
end
```
and run `mix deps.get`.