move min and max from std/Vector.nas (class file) to std.nas
This commit is contained in:
parent
8b06738256
commit
6ac7b3385e
2 changed files with 3 additions and 2 deletions
|
@ -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 }
|
||||||
|
|
|
@ -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="") {
|
||||||
|
|
Loading…
Reference in a new issue