Abstract
You have already seen in previous chapters how Perl 6, having functions as first class citizens, can produce chunks of code out of thin air and work with them. The title list them as we go up the hierarchy. All of them are Callable; code is the simplest type that implements that role; blocks can define a signature or the name of the variables that will be used inside the code itself; a routine is a block that has its own name and can specify data that is going to be returned via the return statement.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2019 J.J. Merelo
About this chapter
Cite this chapter
Merelo, J.J. (2019). Functions. In: Perl 6 Quick Syntax Reference. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-4956-7_8
Download citation
DOI: https://doi.org/10.1007/978-1-4842-4956-7_8
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-4955-0
Online ISBN: 978-1-4842-4956-7
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books