---
title: "Sets from Structures"
canonical: "https://docs.magma-maths.org/v2.30-1/SetsSequencesMappings/Sets/conversion.html"
source: "https://docs.magma-maths.org/v2.30-1/SetsSequencesMappings/Sets/conversion.md"
part: "Sets, Sequences, and Mappings"
chapter: "Sets"
breadcrumbs:
  - {"title": "Magma Handbook", "source": "https://docs.magma-maths.org/v2.30-1/index.md"}
  - {"title": "Sets, Sequences, and Mappings", "source": "https://docs.magma-maths.org/v2.30-1/SetsSequencesMappings/index-sets-sequences-mappings.md"}
  - {"title": "Sets", "source": "https://docs.magma-maths.org/v2.30-1/SetsSequencesMappings/Sets/index-sets.md"}
prev: {"title": "Power Sets", "source": "https://docs.magma-maths.org/v2.30-1/SetsSequencesMappings/Sets/power-set.md"}
next: {"title": "Accessing and Modifying Sets", "source": "https://docs.magma-maths.org/v2.30-1/SetsSequencesMappings/Sets/access-modification.md"}
intrinsics:
  - {"name": "Set", "signature": "Set(M): Str -> SetEnum"}
---

# Sets from Structures

<a id="function-set-str"></a>
## `Set(M): Str -> SetEnum`

Given a finite structure that allows explicit enumeration of its elements, return the set containing its elements (having $M$ as its universe).
