next up previous contents
Next: 6.7.7 The image type Up: 6.7 Operators Previous: 6.7.5 The list type   Contents


6.7.6 The function type

Functions are objects just like any other. You can pass functions to other functions as parameters, store functions in lists, and so on. You can compose functions with the @ operator. For example, for two functions of one argument f and g:

                                                      
  f (g 2) == (f @ g) 2


next up previous contents
Next: 6.7.7 The image type Up: 6.7 Operators Previous: 6.7.5 The list type   Contents
John Cupitt 2004-12-20