KumiScript/interpreter/expression/ListFactory.cs
2024-01-25 23:37:51 -06:00

13 lines
No EOL
331 B
C#

namespace KumiScript.Interpreter
{
public class ListFactory
{
public static ListExpression MakeList(List<Expression> expressions)
{
if (expressions.Any())
return new ProperListExpression(expressions);
return NilExpression.GetInstance();
}
}
}