Re: iolist_size/1 in guard tests

Mark Jones <[email protected]> Tue, 4 Jan 2022 11:38:43 -0600
Newsgroups gmane.comp.lang.erlang.general
Message-ID <CAB9a5cjvYJ8nxCNKK0GRNmSsRfW9XpSoopdBqywAyYXiqyT4Fw@mail.gmail.com>
But length/1 is allowed in guard tests and it is O(N).

Cheers,
Mark

On Tue, Jan 4, 2022 at 2:53 AM Aleksander Nycz <[email protected]>
wrote:

> Probably
>
> iolist_size/1 -> O(N)
>
> byte_size/1 -> O(1)
>
>
> Regards
> Aleksander
>
>
> W dniu 04.01.2022 o 09:49, Mark Jones pisze:
> > Is there a reason iolist_size/1 is not a guard BIF like byte_size/1
> > and bit_size/1?
> >
> > Cheers,
> > Mark
>