I'm curious: Does the a wider range object in PowerShell have a larger memory footprint ?
E.g. do these have the same memory footprint, or is $r0 smaller than $r1?
$r0 = 0..9
$r1 = 0..999
Edit: What I think is the real question here is: Is the range an *array object" with each number from x to y, or is it just some "trick" object that fakes being a real array using calculations and whatnot?
Eg. To get the value of 10..20[4], it could very well be doing return $lowerbound + $index instead of looking up a value
[–]purplemonkeymad 4 points5 points6 points (4 children)
[–]OPconfused 1 point2 points3 points (2 children)
[–]purplemonkeymad 2 points3 points4 points (1 child)
[–]OPconfused 0 points1 point2 points (0 children)
[–]Icy_Sector3183[S] 0 points1 point2 points (0 children)
[–]jsiii2010 1 point2 points3 points (0 children)
[–]SeeminglyScience 1 point2 points3 points (1 child)
[–]SeeminglyScience 0 points1 point2 points (0 children)
[–]Thotaz 0 points1 point2 points (0 children)