---
title: "Introduction"
canonical: "https://docs.magma-maths.org/v2.30-1/SetsSequencesMappings/Coproducts/introduction.html"
source: "https://docs.magma-maths.org/v2.30-1/SetsSequencesMappings/Coproducts/introduction.md"
part: "Sets, Sequences, and Mappings"
chapter: "Coproducts"
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": "Coproducts", "source": "https://docs.magma-maths.org/v2.30-1/SetsSequencesMappings/Coproducts/index-coproducts.md"}
prev: {"title": "Coproducts", "source": "https://docs.magma-maths.org/v2.30-1/SetsSequencesMappings/Coproducts/index-coproducts.md"}
next: {"title": "Creation Functions", "source": "https://docs.magma-maths.org/v2.30-1/SetsSequencesMappings/Coproducts/creation.md"}
---

# Introduction

Coproducts can be useful in various situations, as they may contain objects of entirely different types. Although the coproduct structure will serve as a single parent for such diverse objects, the proper parents of the elements are recorded internally and restored whenever the element is retrieved from the coproduct.
