From 6ac7b3385e4c65f714cc1427a09bc049b40539bc Mon Sep 17 00:00:00 2001 From: Henning Stahlke Date: Thu, 30 Jul 2020 10:05:44 +0200 Subject: [PATCH] move min and max from std/Vector.nas (class file) to std.nas --- Nasal/std.nas | 3 +++ Nasal/std/Vector.nas | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Nasal/std.nas b/Nasal/std.nas index 49ec4d91e..26d322c54 100644 --- a/Nasal/std.nas +++ b/Nasal/std.nas @@ -19,3 +19,6 @@ var files = [ foreach (var file; files) { io.include(include_path~file~".nas"); } + +var min = func(a, b) { a < b ? a : b } +var max = func(a, b) { a > b ? a : b } diff --git a/Nasal/std/Vector.nas b/Nasal/std/Vector.nas index 23b0fcfd4..be5bee875 100644 --- a/Nasal/std/Vector.nas +++ b/Nasal/std/Vector.nas @@ -21,8 +21,6 @@ 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="") {