Menu

#4 User-Defined Function Expressions

open
nobody
Expressions (3)
5
2009-12-16
2009-12-16
Nathan Lane
No

FunctionToken - "func"
ArgumentSeparatorToken - ","
FunctionDefinitionToken - ":"

A user-defined function might look like: func(square_x_and_y(_x, _y : (_x ** 2) + (_y ** 2)))

This function would then accept two parameters, and would be called like: square_x_and_y(12, 5)
The result would be: 169

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.