This chapter introduces and discusses type parameterisation. We have already seen examples of type parameterisation in the collection types where a List can be parameterised to hold only Strings, Person objects or integers. In this chapter, we will look at how you can create your own parameterised types and the options available for controlling the types that can be used with those parameterisations.
CITATION STYLE
Hunt, J. (2018). Type Parameterisation. In A Beginner’s Guide to Scala, Object Orientation and Functional Programming (pp. 287–294). Springer International Publishing. https://doi.org/10.1007/978-3-319-75771-1_28
Mendeley helps you to discover research relevant for your work.