Previous: Compared looping, Up: Comparison


5.4 Functions

C:

int time(float space) {
    return (int) space / 3;
}

t = time(81.65);

Python:

     def time(space):
         return int(space / 3)
     
     t = time(81.65)

Enigma:

{/space/space 3 ! divide ! clone ! round = return;} = time;

81.65 ! time = t;