DynamoDS/Dynamo — pull request #1778 by Steell (2014-06-18 16:23:38+00:00)
Title: Sublists tests: MAGN-2450

Slight change to older functionality: sub-ranges in the range input used to be entirely omitted if one or more indices is out of range, now only the out of range indices are omitted.

__Test:__
```csharp
List.Sublists({ 0, 1, 2, 3, 4, 5 }, { 2..4, 1 }, 3);
```

__Old Result:__
```csharp
{ { 2, 3, 4, 1 }, { 4 } }
```

__New Result:__
```csharp
{ { 2, 3, 4, 1 }, { 5, 4 } } // idxs 3 and 4 are ommitted
```

---------

This still isn't what I feel to be the ideal behavior. I think sub-ranges should correspond to sublists, so the expected result would be the following:

__Ideal Result:__
```csharp
{ { { 2, 3, 4 }, 1 }, { { 5 }, 4 } }
```

Unfortunately, this breaks a lot of our expected use-cases where users expect flat sublists. If we had a way to insert ranges into a list expression without them being nested, then this could work.

```csharp
2..4 == { 2, 3, 4 }
{2..4} == { 2, 3, 4 }
{5, 2..4, 1} == { 5, 2, 3, 4, 1 }
{5, {2..4}, 1} == { 5, { 2, 3, 4 }, 1} //Old behavior