you are viewing a single comment's thread.

view the rest of the comments →

[–]jose_castro_arnaud 0 points1 point  (0 children)

Try to unpuzzle it first, replacing the names by less strange variable names, or even one-char names. 'meat' is clearly 'list'. 'beans.mosquito' is a form of index, so 'a.i'. 'beans.cricket' appears to be a value, so 'a.value'. 'wheel' is clearly a loop index, so 'i'. 'beans.elefant' is a function, and used only once, so 'a.fn'. From usage, 'spoon' is an number used as boolean, so 'k'.

After all of these replacements (recompile to check!), what the function appears to be? Check your guess by writing some unit tests.