1

Lambda calculus of course is quite elegant, but doesn't it bother you that there is this asymmetry between input and output of a function? I.e. you can make the function take two parameters (by returning a function) but you can't make it return two values. I don't think we could find it in The Book.

Łukasz Lew
  • 48,526
  • 41
  • 139
  • 208

2 Answers2

2

You can make it return a function whose evaluations return two values.

joel.neely
  • 30,725
  • 9
  • 56
  • 64
0

Or you can return a compound structure. Just like a vector function which returns a vector, which has separate components in there.

BTW what does your header question have to do with the actual question you've asked?

SasQ
  • 14,009
  • 7
  • 43
  • 43