List member 3

Description

Program check if element is member of a list

Source:

Download

Program source code: list_member_3.pl

Listing

member(Element, [Element|_]).
member(Element, [_|Rest]) :-
        member(Element, Rest).

Comments

pl/prolog/pllib/list_member_3.txt · ostatnio zmienione: 2017/07/17 08:08 (edycja zewnętrzna)
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0