Comment Comment by bargainbin > (mailbox = mailbox + message) is so simple!The author did not say this at all, they barely even touched on capabilities of erlang/OTP. Their focus was on the functional syntax of Erlang.> For instance, in head(sort(list)), will the whole list be sorted, or will the smallest element be returned?Your point isn’t clear. The functions have a clear nested call sequence, take a list, sort it, get the head.Also how is it any different than Haskells `head (sort list)`? parent bargainbin 1 year ago
The author did not say this at all, they barely even touched on capabilities of erlang/OTP. Their focus was on the functional syntax of Erlang.
> For instance, in head(sort(list)), will the whole list be sorted, or will the smallest element be returned?
Your point isn’t clear. The functions have a clear nested call sequence, take a list, sort it, get the head.
Also how is it any different than Haskells `head (sort list)`?