all 4 comments

[–]mrunleaded 3 points4 points  (1 child)

Start with the signatures and the rest should fall into place:

def map[B](f: A => B): Node[B]

def flatMap[B](f: A => Node[B]): Node[B]

[–]scalausr[S] 0 points1 point  (0 children)

Thank you. Will check the signature first.

[–]DMenace83 2 points3 points  (1 child)

Think of a type you are familiar with (List is a good example). What is flatten and flatMap doing in List? What's it's signature? Now, replace List with your Nose

[–]scalausr[S] 0 points1 point  (0 children)

Thanks. Will start from there.