semagrams.layout.FixedRange
An implementation of Spacer that assigns from
to 0
and to
to
n-1
, with the rest of the elements evenly spaced between them.
Attributes
- Graph
- Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Members list
Concise view
Value members
Positions the ith element of {0,...,n-1}
Positions the ith element of {0,...,n-1}
Attributes
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
Returns a map of element => position, where each element is assigned a
position based on its index when xs
is grouped by f
.
Returns a map of element => position, where each element is assigned a
position based on its index when xs
is grouped by f
.
Elements for which f
returns None
are not included in the map.
Attributes
- `xs`
the list of things to assign positions to
- f
the function to group xs
by
- Inherited from:
- Spacer