fbpx

Anonymous methods

  • Robert van der Hulst
  • Robert van der Hulst's Avatar Topic Author
  • Offline
More
2 years 11 months ago - 2 years 11 months ago #1 by Robert van der Hulst
Anonymous methods was created by Robert van der Hulst
DELEGATE Multiply(x AS REAL8) AS REAL8
FUNCTION Start AS VOID
LOCAL del AS Multiply
del := {|e| e * e}
? del(1)
? del(2)
? del(3)
? del(4)
Console.ReadLine()
RETURN

XSharp Development Team
The Netherlands
This email address is being protected from spambots. You need JavaScript enabled to view it.
Last edit: 2 years 11 months ago by Robert van der Hulst.

Please Log in or Create an account to join the conversation.