View Source Plox.FixedValuesScale (Plox v0.1.0)

A scale that represents an arbitrary set of values.

It places the values in the given order with equal distance between them.

This struct implements the Plox.Scale protocol.

Summary

Types

@type t() :: %Plox.FixedValuesScale{
  index_map: term(),
  max_index: term(),
  values: term()
}

Functions

@spec new(values :: Enumerable.t()) :: t()

Creates a new Plox.FixedValuesScale struct

Accepts any enumerable.