Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- exception error;
- fun first (x::xs, n) = nth(x, n);
- fun tagliste (n, []) = []
- | tagliste (0, x::xs) = []
- | tagliste (n, x::xs) =
- if length x < n+1
- then raise error
- else first (x::xs, n)::tagliste(n, xs);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement