mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-07-05 08:01:56 +03:00
Add faster array compare function
Vanilla commit: https://github.com/DayZMod/DayZ/commit/7bbeab4e7db4d340cdd34b6c288bafc0833b1a8e
This commit is contained in:
@@ -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};
|
||||
};
|
||||
Reference in New Issue
Block a user