Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fun preveri(x, y) = if(String.size(x) > String.size(y)) then x else y
- val l = ["aaa", "aaaaaa", "bb", "aaaa"]
- fun best_string(f, xs: string list) = List.foldl f "" xs
- best_string(preveri, l)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement