---
title: "contains(_:)"
framework: paperkit
role: symbol
role_heading: Instance Method
path: "paperkit/markuporderedset/contains(_:)"
---

# contains(_:)

Returns a Boolean value that indicates whether the given element exists in the set.

## Declaration

```swift
func contains(_ element: MarkupOrderedSet.Element) -> Bool
```

## Parameters

- `element`: An element to look for in the set.

## Return Value

Return Value true if member exists in the set; otherwise, false.

## See Also

### Finding elements

- [firstIndex(of:)](paperkit/markuporderedset/firstindex(of:).md)
