Strom.Composite.Manipulations (strom v0.9.3)

View Source

Utility Module. There are functions for manipulating components in a composite

Summary

Functions

insert(components, index, new_components, name)

@spec insert([Strom.component()], integer(), [Strom.component()], atom()) ::
  {[Strom.component()], [Strom.component()], Strom.flow()}

replace(components, index_from, index_to, new_components, name)

@spec replace([Strom.component()], integer(), integer(), [Strom.component()], atom()) ::
  {[Strom.component()], [Strom.component()], Strom.flow()}