We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Requires #10 Syntax: definetype <Type> <Variables Map> <Tags Map> Example:
definetype <Type> <Variables Map> <Tags Map>
function flowdefine MyVector^length_squared { var xsq = <{[this].x.multiply[<{[this].x}>]}>; var ysq = <{[this].y.multiply[<{[this].y}>]}>; var zsq = <{[this].z.multiply[<{[this].z}>]}>; var result = <{[xsq].add[<{var[ysq]}>].add[<{var[zsq]}>]}>; } definetype MyVector x:0|y:0|z:0 length_squared:MyVector^length_squared; var vec = <{myvector[x:1|y:2|z:3]}>; echo <{[vec].x}>; echo <{[vec].length_squared}>
Possibly setter thingies as well? And constructors?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Requires #10
Syntax:
definetype <Type> <Variables Map> <Tags Map>
Example:
Possibly setter thingies as well? And constructors?
The text was updated successfully, but these errors were encountered: