1
0
Fork 0

move min and max from std/Vector.nas (class file) to std.nas

This commit is contained in:
Henning Stahlke 2020-07-30 10:05:44 +02:00 committed by James Turner
parent 8b06738256
commit 6ac7b3385e
2 changed files with 3 additions and 2 deletions

View file

@ -19,3 +19,6 @@ var files = [
foreach (var file; files) { foreach (var file; files) {
io.include(include_path~file~".nas"); io.include(include_path~file~".nas");
} }
var min = func(a, b) { a < b ? a : b }
var max = func(a, b) { a > b ? a : b }

View file

@ -21,8 +21,6 @@
if (ishash(globals["std"]) and ishash(std["Vector"])) if (ishash(globals["std"]) and ishash(std["Vector"]))
return; return;
var min = func(a, b) { a < b ? a : b }
var max = func(a, b) { a > b ? a : b }
var Vector = { var Vector = {
new: func (vector=nil, name="") { new: func (vector=nil, name="") {