Using #shared to return library functions
In this section, we will look at the #shared
libraries, which loads functions and enumerators in a result
set. This means that we do not need any datasets as the code that we create will automatically make use of the #shared
libraries. We will concentrate on creating text data types, numeric data types, lists, records, tables, searches, and shares, as well as importing a CSV file. With each of the different types, we will write the code so that we can see how it works and be able to apply it to other programs. We need to associate data with data types so that M knows whether the data is text, a number, or a string, and so on. We will briefly look at each of the most common data types and see the similarities and differences between them.
Text data types
We already created one example of this at the beginning of this chapter, Hello world
. You will notice that it was not necessary for us to explicitly assign data types as the variable object...