Skip to main content Accessibility help
Internet Explorer 11 is being discontinued by Microsoft in August 2021. If you have difficulties viewing the site on Internet Explorer 11 we recommend using a different browser such as Microsoft Edge, Google Chrome, Apple Safari or Mozilla Firefox.

Update 22/08/2024: Due to technical disruption, we are experiencing some delays to publication. We are working to restore services and apologise for the inconvenience. For further updates please visit our website

Home
> Molecule, abstract data types,…

Chapter 9: Molecule, abstract data types, and modules

Chapter 9: Molecule, abstract data types, and modules

pp. 524-607

Authors

, Tufts University, Massachusetts
Resources available Unlock the full potential of this textbook with additional resources. There are free resources and Instructor restricted resources available for this textbook. Explore resources
  • Add bookmark
  • Cite
  • Share

Summary

In the languages we’ve examined so far, when we have a high-level problem like “see if a list contains an interesting element,” we can define a high-level, problem-specific function like exists?. But we can’t yet define problem-specific data; no matter what problem we’re working on, our code is written in terms of representations like numbers, symbols, Booleans, lists, S-expressions, and constructed data. We should hope for better; if we’re implementing high-level actions like “find the rule in the table,” “multiply two 50-digit numbers,” or “stop recording when the event is over,” then our code should be written in terms of abstractions like tables, large numbers, and events. Such abstractions can be defined by the language features described in the last two chapters of this book.

About the book

Access options

Review the options below to login to check your access.

Purchase options

eTextbook
US$84.99
Hardback
US$84.99

Have an access code?

To redeem an access code, please log in with your personal login.

If you believe you should have access to this content, please contact your institutional librarian or consult our FAQ page for further information about accessing our content.

Also available to purchase from these educational ebook suppliers