IronAHK /Scripting/Parser/Construct/Expressions/List.cs

Language C# Lines 21
MD5 Hash 08d74e968c7bb9b296b6191cb7622076 Estimated Cost $375 (why?)
Repository git://github.com/polyethene/IronAHK.git View Raw File View Project SPDX
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
using System.Collections.Generic;

namespace IronAHK.Scripting
{
    partial class Parser
    {
        List<object> Dissect(List<object> parts, int start, int end)
        {
            var extracted = new List<object>(end - start);

            for (int i = start; i < end; i++)
            {
                extracted.Add(parts[start]);
                parts.RemoveAt(start);
            }

            return extracted;
        }
    }
}
Back to Top