[erlang-questions] json to map
Roelof Wobben
r.wobben@REDACTED
Fri Aug 28 21:52:04 CEST 2015
Op 28-8-2015 om 21:47 schreef Hugo Mills:
> On Fri, Aug 28, 2015 at 03:33:56PM -0400, Kevin Montuori wrote:
>>>>>>> "rw" == Roelof Wobben <r.wobben@REDACTED> writes:
>> 8> time_parser:tokens([10]).
>> rw> ** exception error: no function clause matching
>> rw> time_parser:tokens("\n") (time_parser.erl, line 5)
>>
>> rw> where do the /n come from ?
>>
>> What happens when you type
>>
>> 1> ([10]).
>>
>> in the REPL?
> Roelof: This is the kind of question that I was saying you should
> be paying attention to. If you can answer this question and explain
> it, you've got your answer to your original question. You should have
> the knowledge from earlier reading in your book to explain the results
> you see.
>
> (Or just read my mail from a few minutes ago, which gives you the
> answer directly... my teaching error).
>
> Hugo.
>
Thanks,
I understand it now. My mind is still not set up for seeing this sort of
things. Maybe to late.
Also I see that I have to rewrite my digits function. When entering 10
I see the answer 538 which is the 49 (1) * 10 + 48(0)
Now time to sleep and rethink it.
Roelof
More information about the erlang-questions
mailing list