carry v0.1.1 Carry
Carry transforms a map to the corresponding Elixir struct:
Link to this section Summary
Functions
Transform the given map to the corresponding struct Example
Link to this section Functions
Transform the given map to the corresponding struct Example:
iex> defmodule Instrument do defstruct [:carillon] end
iex> Carry.on(%{“carillon” => “sound”, “marimba” => “percussion”}, %Instrument{}) %Instrument{carillon: “sound”}