It could be a Church Numeral in which case function application is the same as addition and the answer is actually 10…
Comment on I dunno
ExtremeDullard@piefed.social 1 day ago
5 isn’t a valid function name, is obviously the right answer.
gnutrino@programming.dev 1 day ago
merc@sh.itjust.works 1 day ago
Depends on the language.
marcos@lemmy.world 1 day ago
I’m pretty sure that’s a module operator…
TheRedSpade@lemmy.world 1 day ago
How can you be sure it’s not defined when we only see one line?
Voroxpete@sh.itjust.works 1 day ago
They didn’t say it’s not defined, they said it’s not a valid name. Most languages don’t allow function names to start with a number, so 5 literally cannot be a function if that’s the case…
But that’s assuming this isn’t some really obscure language.