range

The list of values in the subrange defined by a bounding pair.
>>> range ('x','z')
"xyz"

>>> range (LT,GT)
[LT,EQ,GT]
Enumerate without Enum context. For Enum equivalent to enumFrom.
>>> range 0 :: [Integer]
[]

>>> range 1 :: [Integer]
[0]

>>> range 8 :: [Integer]
[0,1,2,3,4,5,6,7]
\(NonNegative n) -> length (range n :: [Integer]) == n
>>> range 5
[0,1,2,3,4]
it :: Vector I
O(n) Range. The difference between the largest and smallest elements of a sample.
O(n) Compute decent defaults for the lower and upper bounds of a histogram, based on the desired number of bins and the range of the sample data. The upper and lower bounds used are (lo-d, hi+d), where
d = (maximum sample - minimum sample) / ((bins - 1) * 2)
If all elements in the sample are the same and equal to x range is set to (x - |x|10, x + |x|10). And if x is equal to 0 range is set to (-1,1). This is needed to avoid creating histogram with zero bin size.
The list of values in the subrange defined by a bounding pair.
The list of values in the subrange defined by a bounding pair.
Smart constructor for IPv4Range. Ensures the mask is appropriately sized and sets masked bits in the IPv4 to zero.
Smart constructor for IPv6Range. Ensures the mask is appropriately sized and sets masked bits in the IPv6 to zero.
>>> let addr = IPv6.ipv6 0xDEAD 0xBEEF 0x3240 0xA426 0xBA68 0x1CD0 0x4263 0x109B

>>> IPv6.printRange $ IPv6.range addr 25
dead:be80::/25
Create an array of indices with a range from start to finish (not-including), where indices are incremeted by one.

Examples

>>> import Data.Massiv.Array

>>> range Seq (Ix1 1) 6
Array D Seq (Sz1 5)
[ 1, 2, 3, 4, 5 ]

>>> fromIx2 <$> range Seq (-1) (2 :. 2)
Array D Seq (Sz (3 :. 3))
[ [ (-1,-1), (-1,0), (-1,1) ]
, [ (0,-1), (0,0), (0,1) ]
, [ (1,-1), (1,0), (1,1) ]
]
range w l u returns domain containing all bitvectors formed from the w low order bits of some i in [l,u]. Note that per testBit, the least significant bit has index 0.
range w l u returns domain containing all bitvectors formed from the w low order bits of some i in [l,u]. Note that per testBit, the least significant bit has index 0.
Construct a domain from bitwise lower and upper bounds
Range passed from neovim. Only set if CmdRange was used in the export declaration of the command. Example:
  • Just (1,12)
range will take a pattern which goes from 0 to 1 (like sine), and range it to a different range - between the first and second arguments. In the below example, `range 1 1.5` shifts the range of sine1 from 0 - 1 to 1 - 1.5.
d1 $ jux (iter 4) $ sound "arpy arpy:2*2"
|+ speed (slow 4 $ range 1 1.5 sine1)
The above is equivalent to:
d1 $ jux (iter 4) $ sound "arpy arpy:2*2"
|+ speed (slow 4 $ sine1 * 0.5 + 1)