Re:Show HN: KatLang – Language for Calculations
by rabarbers on Thursday December 02, 2021 @12:26PM
(#29419264)
A1 in Javascript pseudocode would be:
But A2 would be:
If you do not like the default order of implicit parameters, you can always use Grace~ operator to move x or y. Prefix form moves the parameter one position towards the beginning of the parameters list, postfix form moves one position towards the end of the parameters list:
or
or
[Edit]
In the last example take into consideration, that without Grace~ operator y is the first parameter, so, you need to move it one position towards the end of the parameters list - therefore use postfix form of Grace~ operator.
[ Parent
| on HN ]
There are no comments on this comment yet.