Dextruct v0.1.0 Dextruct View Source
Destructing assignment operator and utilities.
Link to this section Summary
Functions
Dextruct operator <~
imitate the destruction assignment behavior on other language like Ruby and ES6
Hello world
Link to this section Functions
Dextruct operator <~
imitate the destruction assignment behavior on other language like Ruby and ES6.
Hello world.
Examples
iex> Dextruct.fill([1], 3)
[1, nil, nil]
Example
iex> Dextruct.fill(%{a: 1}, [:a, :b, :c])
%{a: 1, b: nil, c: nil}