Corner.PatternExtracter (corner v0.1.2)

This module can help to extracte value base on pattern.

This module define macro <~/2. We can use it extract value base on pattern.

example

Example

iex> import Corner.PatternExtracter
iex> {:ok, [a,b,c]} <~ {:ok, [1]}
iex> a
1
iex> b
nil
iex> c
nil

Link to this section Summary

Link to this section Functions

Link to this macro

pattern <~ value

(macro)