diff --git a/src/core/FunctionArgument.cs b/src/core/FunctionArgument.cs index 44fed30..103223f 100644 --- a/src/core/FunctionArgument.cs +++ b/src/core/FunctionArgument.cs @@ -8,8 +8,8 @@ namespace csmic { public class FunctionArgument { - public required string Name { get; set; } - public required FunctionValue Value { get; set; } + public string Name { get; set; } + public FunctionValue Value { get; set; } public FunctionArgument(string name, FunctionValue fv) { diff --git a/src/stdlib/functions/AbsoluteValue.cs b/src/stdlib/functions/AbsoluteValue.cs index 4578600..7279f9b 100644 --- a/src/stdlib/functions/AbsoluteValue.cs +++ b/src/stdlib/functions/AbsoluteValue.cs @@ -1,9 +1,5 @@ using csmic; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; +using ValueType = csmic.ValueType; namespace stdlib.functions { @@ -13,10 +9,7 @@ namespace stdlib.functions { get { - yield return new FunctionArgument( - name: "value", - fv: new FunctionValue(ValueType.Numeric, 0m) - ); + yield return new FunctionArgument("value", new FunctionValue(ValueType.Numeric, 0m)); } }