case_insensitive - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

The Case Insensitive Indexing Function

 Calling Sequence table(case_insensitive, ...)

Description

 • The case_insensitive indexing function is used to create a table for which any object can be stored in an array or a table that uses the case_insensitive indexing function, but indexing into the table ignores the case of the letters in any symbols or strings in the indices.
 • Internally, indices that are strings or symbols are canonicalized to an all lowercase version via StringTools:-LowerCase. Indices that are not strings or symbols are first converted to strings, and then transformed to all lowercase.

Examples

 > $T≔\mathrm{table}\left('\mathrm{case_insensitive}',\left[a=1,b=2\right]\right)$
 ${T}{≔}{table}{}\left({\mathrm{case_insensitive}}{,}\left[{a}{=}{1}{,}{b}{=}{2}\right]\right)$ (1)
 > $T\left[a\right]$
 ${1}$ (2)
 > $T\left[A\right]$
 ${1}$ (3)
 > $T\left["A"\right]$
 ${{T}}_{{"A"}}$ (4)
 > $T\left[A+b\right]≔3$
 ${{T}}_{{A}{+}{b}}{≔}{3}$ (5)
 > $T\left[A+B\right]$
 ${3}$ (6)