semagrams.layout.FixedRangeExceptEnds
An implementation of Spacer that assigns from to -1 and to to n,
with the rest of the elements evenly space between them.
Useful when you want to, for instance, put ports evenly on a side of a box
but you don't want to put ports on the corners of the box.
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