E.g. requiring to call by
f(4), and add 1 to the byte count
Or maybe when inputting a choice, require input
f`&^%`, and add 6 to the byte count?(Related)
Cuz we allow filename storage as long as its byte counted(Related)
In programming languages where functions are curried by default this is already allowed. For example here I define the function
% as so:
(a:b)!(c:d)|a==c=1+b!d _!_=0 a%c@(e:d)=maximum[a!c,""%d,(a++[e])%d] _%_=0
but my actual solution requires the empty string to be passed as input. I add the bytes
(if you are not familiar with Haskell this partially applies
% to the empty string) to create a anonymous function. This is basically passing a static argument to the function from earlier. It is even clearer if we rename
(a:b)!(c:d)|a==c=1+b!d _!_=0 f a c@(e:d)=maximum[a!c,f""d,f(a++[e])d] f _ _=0
In which case we add the extra bytes
Since anonymous functions are already allowed, and partial application create returns a function, this is allowed and the way to count bytes is rather obvious.
This only works if the original function was named (not anonymous) because it has to be called. If my function were already anonymous I would have to add to its definition or name it.
If your function is not curried, it can't use the same format. Alternative solutions would include