Sparkline in unicode: Difference between revisions

Content added Content deleted
Line 1,653: Line 1,653:
To vary the approach, the block used is derived from the option type (<code>Just x | Nothing</code>) result of a search over 7 zero-indexed lower bounds [0..6].
To vary the approach, the block used is derived from the option type (<code>Just x | Nothing</code>) result of a search over 7 zero-indexed lower bounds [0..6].


If a lower bound whose value exceeds that of the data point is found, we just use the index of that bound.
If a lower bound whose value exceeds that of the given data point can be found, we just use the index of that bound.


If the search result is 'not found' (Nothing), then we use the highest (nominally 8th) block.
If the search result is 'not found' (Nothing), then we use the highest (nominally 8th) block.