---
title: "isSubset(of:)"
framework: swift
role: symbol
role_heading: Instance Method
path: "swift/rangeset/issubset(of:)"
---

# isSubset(of:)

Returns a Boolean value that indicates whether this range set is a subset of the given set.

## Declaration

```swift
func isSubset(of other: RangeSet<Bound>) -> Bool
```

## Parameters

- `other`: A range set to compare against.

## Return Value

Return Value true if this range set is a subset of other; otherwise, false.
