Swift Compound procedures
A compound procedure contains a set of Swift script statements:
(type2 b) foo_bar (type1 a) {
type3 c;
c = foo(a); // c holds the result of foo
b = bar(c); // c is an input to bar
}
(type2 b) foo_bar (type1 a) {
type3 c;
c = foo(a); // c holds the result of foo
b = bar(c); // c is an input to bar
}
In this page (written and validated by A. Gawali) you learned about Swift Compound procedures . What's Next? If you are interested in completing Swift tutorial, your next topic will be learning about: Swift More about types.
Share On: |