Contains(library function exercise): please help

What am I doing wrong in this function, i am not able to add it
function my#contains with haystack, needle do
for each item in haystack do
if item == needle do
return true
end

return false
end

end
please help

  1. Please use codeblocks (and spoilers) when sharing code.
  2. Does that pass all the checks?
  3. Did you submit that solution?
  4. What happens when you try to include it?