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
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