/miff

Destructive set tuple element

Primary LanguageErlangGNU Lesser General Public License v3.0LGPL-3.0

Miff

  • destructive set tuple element

quick start

  • Add to rebar.config
{deps, [
  ...
  {miff, {git, "https://github.com/QCute/miff.git", {branch, "master"}}}
]}.
  • Usage
T = {1, 2, 3}.
{0, 2, 3} = T = miff:set_tuple_element(1, T, 0).