diff --git a/Nasal/std.nas b/Nasal/std.nas index 871e665a8..49ec4d91e 100644 --- a/Nasal/std.nas +++ b/Nasal/std.nas @@ -13,7 +13,7 @@ var include_path = "Nasal/std/"; var files = [ "hash", "string", - "vector", + "Vector", ]; foreach (var file; files) { diff --git a/Nasal/std/Vector.nas b/Nasal/std/Vector.nas index be5bee875..23b0fcfd4 100644 --- a/Nasal/std/Vector.nas +++ b/Nasal/std/Vector.nas @@ -21,6 +21,8 @@ if (ishash(globals["std"]) and ishash(std["Vector"])) return; +var min = func(a, b) { a < b ? a : b } +var max = func(a, b) { a > b ? a : b } var Vector = { new: func (vector=nil, name="") {