@is_suffix(s1:string, s2:string)
@is_suffix(s1:string, s2:string, cmp:fct)
@is_suffix(t1:tab, t2:tab)
@is_suffix(t1:tab, t2:tab, cmp:fct)
@is_suffix is an overloaded function. See also the functions @is_subsequence and @is_prefix.


@is_suffix(s1:string, s2:string)
the predicate returns true if string s1 is a suffix of string s2.


@is_suffix(s1:string, s2:string, cmp:fct)
the predicate returns true if string s1 is a suffix of string s2 where the characters are compared with the function cmp. The characters are passed to the function cmpq as strings of length one.


@is_suffix(t1:tab, t2:tab)
the predicate returns true if the sequence of elements of t1 is a suffix of the sequence of element of t2.


@is_suffix(t1:tab, t2:tab, cmp:fct)
same as the previous version but the function cmp is used to test the equality between the elements, instead of the usual comparison between values. For example:
       @fun_def cmp($x, $y) { $x < $y }
       @is_suffix([1, 2], [5, 6, 7], @cmp) ->true
true is returned because @cmp(1, 6) and @cmp(2, 7) hold.


See also Predicates @!=    @&&    @||    @<=    @<    @==    @>=    @>    @approx    @arch_darwin    @arch_linux    @arch_windows    @between    @empty    @find    [@is_applicable]    [@is_applicable_exe]    @is_bool    @is_defined    @is_exec    @is_fct    @is_float    @is_fct    [@is_fun]    @is_function    @is_int    @is_integer_indexed    @is_list    @is_map    [@is_Napplicable]    @is_nim    [@is_not_initialized]    @is_numeric    [@is_paf]    @is_obj    @is_obj_xxx    @is_prefix    @is_proc    @is_string    [@is_string_or_symbol]    @is_subsequence    @is_suffix    @is_symbol    @is_tab    @is_undef    @is_vector    @member    @occurs

(t1:tab, t2:tab, cmp:fct): same as the previous version but the function is used to test the equality between the elements, instead of the usual comparison between values. For example:

            @fun_def cmp($x, $y) { $x < $y }
            @is_suffix([1, 2], [5, 6, 7], @cmp) ->true

is returned because and hold.