Add faster array compare function

Vanilla commit:

7bbeab4e7d
This commit is contained in:
ebaydayz
2016-08-23 11:17:07 -04:00
parent 8c43b0fc1a
commit d7cc4be585
4 changed files with 17 additions and 2 deletions

View File

@@ -0,0 +1,14 @@
/*
Kilzone_Kid's megafast isEqual function
params [array1,array2]
Examples:
hint str ([[1,2,3], [1,2,3]] call fnc_isEqual); //true
hint str ([[1,[2,[3]]], [1,[2,[3]]]] call fnc_isEqual); //true
hint str ([[1,[2,[3]]], [1,[2,[4]]]] call fnc_isEqual); //false
*/
switch (_this select 0) do {
case (_this select 1) : {true};
default {false};
};