---
title: "minus(_:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nshashtable/minus(_:)"
---

# minus(_:)

Removes each element in another given hash table from the receiving hash table, if present.

## Declaration

```swift
func minus(_ other: NSHashTable<ObjectType>)
```

## Parameters

- `other`: The hash table of elements to remove from the receiving hash table.

## Discussion

Discussion The equality test used for members depends on the personality option selected. For instance, choosing the objectPersonality option will use isEqual: to determine equality. See NSPointerFunctions.Options for more information on personality options and their corresponding equality tests.

## See Also

### Set Functions

- [union(_:)](foundation/nshashtable/union(_:).md)
