[erlang-bugs] lists:suffix/2

Anders Nygren <>
Wed Mar 26 20:53:27 CET 2008


2008/3/26 Fredrik Linder <>:
>
>
>
> ()23> lists:suffix("a", "ala").
> true
> ()24> lists:suffix("al", "ala").
>  false
> ()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
>  
>  http://www.erlang.org/mailman/listinfo/erlang-bugs
>


More information about the erlang-bugs mailing list