Abstract
The concept of a function in many programming languages, PowerShell included, has much in common with the mathematics concept of a function. A function is an operation that accepts a set of parameters and returns new values. Mathematics requires that a function depend on its parameters only; that is, it should always return the same value given the same parameters. However, shell users do not have to comply with that restriction. A function in PowerShell is just another name for a subroutine or a piece of code that can accept parameters, execute actions, and return values.
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 subscriptionsPreview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2008 Hristo Deshev
About this chapter
Cite this chapter
(2008). Working with Functions. In: Pro Windows PowerShell. Apress. https://doi.org/10.1007/978-1-4302-0546-3_5
Download citation
DOI: https://doi.org/10.1007/978-1-4302-0546-3_5
Publisher Name: Apress
Print ISBN: 978-1-59059-940-2
Online ISBN: 978-1-4302-0546-3
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)