Abstract
In this chapter, I will discuss one of the most basic and frequent operations you will perform as you program: comparing data. In the bookstore example, you may need to compare book titles if your clients are looking for a specific book. You may also need to compare authors if your clients are interested in purchasing books by a specific author. Comparing data is a common task performed by developers. Many of the loops you learned about in the previous chapter will require you to compare data so that you know when your code should stop looping.
Keywords
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsAuthor information
Authors and Affiliations
Rights and permissions
Copyright information
© 2015 Gary Bennett
About this chapter
Cite this chapter
Bennett, G., Lees, B. (2015). Comparing Data. In: Swift for Absolute Beginners. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-0886-1_9
Download citation
DOI: https://doi.org/10.1007/978-1-4842-0886-1_9
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-0887-8
Online ISBN: 978-1-4842-0886-1
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books