Just to hint at to how flexible Red really is, consider this fp1 function:
fp1: function [x [integer!] y [string!]] [ prin [x "- "] print y]
Let's name the header (this is the part where the parameters are declared) and the body:
header: [x [integer!] y [string!]]body: [ prin [x "- "] print y]
We can now rewrite our function as fp1-alt: function header body.
Both functions still work the same, as shown in the following code fragment:
fp1 108 "Red" ;== 108 - Redfp1-alt 108 "Red" ;== 108 - Red
Now let's manipulate ...