[erlang-bugs] lists:suffix/2

Anders Nygren anders.nygren@REDACTED
Wed Mar 26 20:53:27 CET 2008


2008/3/26 Fredrik Linder <fredrikelinder@REDACTED>:
>
>
>
> (node@REDACTED)23> lists:suffix("a", "ala").
> true
> (node@REDACTED)24> lists:suffix("al", "ala").
>  false
> (node@REDACTED)25> lists:suffix("ala", "ala").
>  true
>
>
> Erlang OTP R11B
> stdlib-1.14.5
>

And what is the problem? "ala" does not end with "al" but it ends with "ala"
Remember suffix is at the end, prefix is at the beginning.
/Anders


> _______________________________________________
>  erlang-bugs mailing list
>  erlang-bugs@REDACTED
>  http://www.erlang.org/mailman/listinfo/erlang-bugs
>



More information about the erlang-bugs mailing list