Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- declare
- fun{FindElement L I}
- case L of H|T then
- if I == H then
- H
- else
- {FindElement T H}
- end
- [] nil then
- nil
- end
- end
- {Browse {FindElement [1 2 3 4 5] 3}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement