Skip to content

gatorek/assigner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Assigner

Assigner is a simple macro that allows you to assign values to variables in a pipeline.

Usage

use Assigner

2 + 2
|> assign(:a)

assert a == 4

# or

4 * 4
|> assign(b) # no need to initialize a variable

assert b == 16

Installation

If available in Hex, the package can be installed by adding assigner to your list of dependencies in mix.exs:

def deps do
  [
    {:assigner, "~> 0.1.0"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/assigner.

About

A simple macro to use in elixir pipeline to assing a value to a variable

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages