Igniter.Code.Tuple (igniter v0.1.3)
Utilities for working with tuples.
Summary
Functions
Returns true
if the zipper is at a literal tuple, false
if not.
Returns a zipper at the tuple element at the given index, or :error
if the index is out of bounds.
Functions
Link to this function
tuple?(item)
@spec tuple?(Sourceror.Zipper.t()) :: boolean()
Returns true
if the zipper is at a literal tuple, false
if not.
Link to this function
tuple_elem(item, elem)
@spec tuple_elem(Sourceror.Zipper.t(), elem :: non_neg_integer()) :: {:ok, Sourceror.Zipper.t()} | :error
Returns a zipper at the tuple element at the given index, or :error
if the index is out of bounds.