Wiris

Documentation / CalcMe

  • Demos
  • Visit our website
  • Contact us
  • MathType

    • WirisQuizzes

      • LearningLemur

        • CalcMe

          • MathPlayer

            • Store FAQ

              • VPAT for the electronic documentation

                • MathFlow

                  • BF FAQ

                    • Miscellaneous

                      • Wiris Integrations

                        • Home
                        • CalcMe
                        • Commands
                        • Programming Functions
                        • Programming Functions

                        Index

                        Reading time: 1min

                        Nota

                        Working with abstract algebra? See Index (Abstract Algebra).

                        Returns the position of an element on a vector.

                        Syntax

                        index(Element, Vector | List)
                        
                        index(Element, Vector | List, Integer)
                        

                        Description

                        Given an element and a vector or list, returns the index of the first occurrence (starting at 1). If the element does not belong to the vector or list, returns 0.

                        Given an element, a vector or list and an integer n, returns the index of the first occurrence after position n. If the element does not belong to the vector or list, returns 0.

                        Was this article helpful?

                        Give feedback about this article

                        Related Articles

                        • Append
                        • Belongs?
                        • Complement
                        • Constant list
                        • Count element

                        Index

                        Nota Syntax Description

                        Empowering STEM education

                        MathType

                        • Office Tools
                        • LMS
                        • XML
                        • HTML

                        WirisQuizzes

                        Learning Lemur

                        Integrations

                        Solutions

                        • Education
                        • Publishing houses – platforms and interactive
                        • Publishing houses – Print and digital
                        • Technical writers

                        Pricing

                        Downloads

                        Blog

                        • Success stories

                        About us

                        • Careers
                        • Partnership

                        Contact Us

                        Contact Sales

                        European union (European Regional Development Fund) and 1EdTech (TrustEd Apps Certified)
                        • Cookie Policy
                        • Terms of Use
                        • Privacy Policy / GDPR
                        • Student Data Privacy
                        • Compliance
                        • Cookie Settings

                        © Wiris 2026

                        Expand