3 * Copyright (c) 2004-present, Facebook, Inc.
6 * This source code is licensed under the MIT license found in the
7 * LICENSE file in the root directory of this source tree.
11 namespace HH\Lib\Keyset
;
13 use namespace HH\Lib\C
;
16 * Returns whether the two given keysets have the same elements, using strict
17 * equality. To guarantee equality of order as well as contents, use `===`.
19 * Time complexity: O(n)
20 * Space complexity: O(1)
22 function equal
<Tv
as arraykey
>(
26 return $keyset1 == $keyset2;