/usr/local/lib/swipl/library/apply.pl
All Application Manual Name SummaryHelp

  • swipl
    • library
      • error.pl
      • debug.pl -- Print debug messages and test assertions
      • apply.pl -- Apply predicates on a list
        • include/3
        • exclude/3
        • partition/4
        • partition/5
        • maplist/2
        • maplist/3
        • maplist/4
        • maplist/5
        • convlist/3
        • foldl/4
        • foldl/5
        • foldl/6
        • foldl/7
        • scanl/4
        • scanl/5
        • scanl/6
        • scanl/7
      • lists.pl
      • broadcast.pl
      • shlib.pl -- Utility library for loading foreign objects (DLLs, shared objects)
      • option.pl
      • thread_pool.pl
      • gensym.pl -- Generate unique symbols
      • settings.pl
      • arithmetic.pl
      • main.pl
      • readutil.pl
      • operators.pl
      • pairs.pl
      • prolog_source.pl
      • record.pl
      • quasi_quotations.pl
      • pure_input.pl
      • solution_sequences.pl -- Modify solution sequences
      • ordsets.pl -- Ordered set manipulation
      • random.pl
      • base64.pl
      • aggregate.pl
      • yall.pl
      • sandbox.pl
      • apply_macros.pl -- Goal expansion rules to avoid meta-calling
      • assoc.pl
      • prolog_format.pl
      • predicate_options.pl
      • csv.pl
      • pprint.pl
      • atom.pl
      • modules.pl
      • occurs.pl
      • prolog_xref.pl
      • prolog_colour.pl
      • lazy_lists.pl -- Lazy list handling
      • ugraphs.pl
      • url.pl
      • www_browser.pl
      • prolog_pack.pl
      • git.pl
      • rbtrees.pl
      • dif.pl
      • charsio.pl
      • prolog_stack.pl
      • edinburgh.pl
      • prolog_clause.pl
      • prolog_breakpoints.pl -- Manage Prolog break-points
      • wfs.pl -- Well Founded Semantics interface
      • dialect.pl
      • prolog_code.pl -- Utilities for reasoning about code
      • sort.pl
      • iostream.pl -- Utilities to deal with streams
      • dicts.pl
      • varnumbers.pl
      • backcomp.pl
      • thread.pl -- High level thread primitives
      • terms.pl -- Term manipulation
      • utf8.pl
      • base32.pl
      • codesio.pl
      • coinduction.pl -- Co-Logic Programming
      • date.pl
      • heaps.pl
      • statistics.pl
      • when.pl -- Conditional coroutining
      • prolog_debug.pl
      • prolog_trace.pl
      • prolog_wrap.pl -- Wrapping predicates
      • prolog_jiti.pl
      • ansi_term.pl
      • listing.pl
      • prolog_autoload.pl
      • check.pl
      • prolog_codewalk.pl -- Prolog code walker
      • writef.pl
      • quintus.pl
      • persistency.pl
      • prolog_profile.pl
      • zip.pl
      • strings.pl
      • threadutil.pl -- Interactive thread utilities
      • exceptions.pl
      • streams.pl -- Manage Prolog streams
      • prolog_coverage.pl -- Coverage analysis tool
      • prolog_versions.pl
      • hashtable.pl
      • prolog_metainference.pl
      • tables.pl
 include(:Goal, +List1, ?List2) is det
Filter elements for which Goal succeeds. True if List2 contains those elements Xi of List1 for which call(Goal, Xi) succeeds.
See also
- exclude/3, partition/4, convlist/3.
Compatibility
- Older versions of SWI-Prolog had sublist/3 with the same arguments and semantics.