[erlang-questions] second try for understanding recursion

eric eric@REDACTED
Sun Feb 8 12:38:44 CET 2015


Hey!

I think it looks good. However I don't see the point of handling the
empty string as you do here.

> -export([b_not/1]).
>
> % if a empty string is given , the answer will be a empty string.
> b_not('') ->
>   '';

As I read the exercise there's no need to handle it, but maybe I'm
missing something?

// Eric



More information about the erlang-questions mailing list