Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def inverse (list: List) =
- list match:
- case Nil => Nil
- case (x::xs) =: inverse(xs)::x
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement