Skip to main content
Ctrl+K
Magma Magma
  • About
    About News Members
  • Documentation
    Handbook Official Handbook Release Notes Patch Notes
  • Mathematical Areas
  • Try
  • Subscriptions
  • Download
  • Contact
  • Explore
    Tutorials Conferences Seminars Databases Third Party Libraries How to Cite Support Citation Database
  • About
    About News Members
  • Documentation
    Handbook Official Handbook Release Notes Patch Notes
  • Mathematical Areas
  • Try
  • Subscriptions
  • Download
  • Contact
  • Explore
    Tutorials Conferences Seminars Databases Third Party Libraries How to Cite Support Citation Database
  • Preface
  • The Magma Language
  • Sets, Sequences and Mappings
  • Basic Rings
  • Matrices and Linear Algebra
  • Lattices and Quadratic Forms
  • Global Fields
  • Local Fields
  • Modules
  • Finite Groups
  • Finitely Presented Groups
  • Algebras
  • Representation Theory
  • Lie Theory
  • Commutative Algebra
  • Algebraic Geometry
  • Arithmetic Geometry
  • Modular Arithmetic Geometry
  • Topology
  • Geometry
  • Combinatorics
  • Coding Theory
  • Cryptography
  • Optimization
  • References
  • Sets, Sequences and Mappings
  • Associative Arrays

Associative Arrays#

  • Introduction
  • Operations
    • AssociativeArray() → Assoc
    • AssociativeArray(I): Str → Assoc
    • A[x] := y: Assoc, Elt, Elt
    • A[x]: Assoc, Elt → Elt
    • IsDefined(A, x): Assoc, Elt → Bool, Elt
    • IsInKeys(A, x): Assoc, Elt → Bool, Elt
    • Remove(~A, x): Assoc, Elt
    • Universe(A): Assoc → Str
    • # A: Assoc → RngIntElt
    • Keys(A): Assoc → SetEnum
    • Values(A): Assoc → List
    • Example: Assoc Creation
  • Iteration
    • v in A
    • k -> v in A
    • Example: Assoc Iteration

previous

Iteration

next

Introduction

Magma Magma

Magma is maintained and distributed by the Computational Algebra Group, School of Mathematics and Statistics, University of Sydney.

University of Sydney

Explore

  • Home
  • Preface
  • References
  • General Index

Community

  • Members
  • Visitors
  • Seminars
  • Conferences
  • News

Help

  • FAQ
  • Contact
  • Licensing
  • How to Cite
  • Main Website ↗
© 1993–2026 Computational Algebra Group. All rights reserved. Built at the University of Sydney, Australia.