You are viewing a single comment's thread. Return to all comments →
Something like
def f(p: List[Char], q: List[Char]) : List[Char] = { if (p.isEmpty) List() else (p.head :: q.head :: f1 (p.tail, q.tail)) }
PS: Almost all the challenges are designed such that you don't need mutable variables to solve them.
Seems like cookies are disabled on this browser, please enable them to open this website
String Mingling
You are viewing a single comment's thread. Return to all comments →
Something like
PS: Almost all the challenges are designed such that you don't need mutable variables to solve them.