/usr/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 -- List Manipulation
      • broadcast.pl
      • predicate_options.pl
      • shlib.pl -- Utility library for loading foreign objects (DLLs, shared objects)
      • option.pl -- Option list processing
      • thread_pool.pl
      • gensym.pl -- Generate unique symbols
      • settings.pl -- Setting management
      • arithmetic.pl -- Extensible arithmetic
      • main.pl -- Provide entry point for scripts
      • readutil.pl -- Read utilities
      • operators.pl -- Manage operators
      • pairs.pl -- Operations on key-value lists
      • prolog_source.pl -- Examine Prolog source-files
      • record.pl -- Access compound arguments by name
      • quasi_quotations.pl -- Define Quasi Quotation syntax
      • pure_input.pl -- Pure Input from files and streams
      • solution_sequences.pl -- Modify solution sequences
      • ordsets.pl -- Ordered set manipulation
      • random.pl -- Random numbers
      • base64.pl -- Base64 encoding and decoding
      • aggregate.pl -- Aggregation operators on backtrackable predicates
      • yall.pl -- Lambda expressions
      • sandbox.pl -- Sandboxed Prolog code
      • apply_macros.pl -- Goal expansion rules to avoid meta-calling
      • assoc.pl -- Binary associations
      • prolog_format.pl -- Analyse format specifications
      • csv.pl -- Process CSV (Comma-Separated Values) data
      • pprint.pl -- Pretty Print Prolog terms
      • atom.pl -- Operations on atoms
      • modules.pl -- Module utility predicates
      • occurs.pl -- Finding and counting sub-terms
      • prolog_xref.pl -- Prolog cross-referencer data collection
      • prolog_colour.pl -- Prolog syntax colouring support.
      • lazy_lists.pl -- Lazy list handling
      • ugraphs.pl -- Graph manipulation library
      • iostream.pl -- Utilities to deal with streams
      • url.pl -- Analysing and constructing URL
      • www_browser.pl -- Open a URL in the users browser
      • prolog_pack.pl -- A package manager for Prolog
      • git.pl -- Run GIT commands
      • utf8.pl -- UTF-8 encoding/decoding on lists of character codes.
      • quintus.pl -- Quintus compatibility
      • prolog_versions.pl -- Demand specific (Prolog) versions
      • prolog_wrap.pl -- Wrapping predicates
      • dialect.pl -- Support multiple Prolog dialects
      • date.pl -- Process dates and times
      • persistency.pl -- Provide persistent dynamic predicates
      • prolog_code.pl -- Utilities for reasoning about code
      • strings.pl -- String utilities
      • dif.pl -- The dif/2 constraint
      • edinburgh.pl -- Some traditional Edinburgh predicates
      • terms.pl -- Term manipulation
      • ansi_term.pl -- Print decorated text to ANSI consoles
      • threadutil.pl -- Interactive thread utilities
      • prolog_stack.pl -- Examine the Prolog stack
      • prolog_clause.pl -- Get detailed source-information about a clause
      • prolog_breakpoints.pl -- Manage Prolog break-points
      • wfs.pl -- Well Founded Semantics interface
      • sort.pl
      • dicts.pl -- Dict utilities
      • varnumbers.pl -- Utilities for numbered terms
      • rbtrees.pl -- Red black trees
      • backcomp.pl -- Backward compatibility
      • charsio.pl -- I/O on Lists of Character Codes
      • statistics.pl -- Get information about resource usage
      • tables.pl -- XSB interface to tables
      • check.pl -- Consistency checking
      • ctypes.pl -- Character code classification
      • make.pl -- Reload modified source files
      • prolog_profile.pl -- Execution profiler
      • base32.pl -- Base32 encoding and decoding
      • codesio.pl -- I/O on Lists of Character Codes
      • coinduction.pl -- Co-Logic Programming
      • heaps.pl -- heaps/priority queues
      • when.pl -- Conditional coroutining
      • prolog_coverage.pl -- Coverage analysis tool
      • listing.pl -- List programs and pretty print clauses
      • macros.pl -- Macro expansion
      • intercept.pl -- Intercept and signal interface
      • prolog_config.pl -- Provide configuration information
      • tty.pl -- Terminal operations
      • prolog_history.pl -- Per-directory persistent commandline history
      • prolog_autoload.pl -- Autoload all dependencies
      • prolog_codewalk.pl -- Prolog code walker
      • explain.pl -- Describe Prolog Terms
      • prolog_jiti.pl -- Just In Time Indexing (JITI) utilities
      • system.pl -- System utilities
      • prolog_debug.pl -- User level debugging tools
      • optparse.pl -- command line parsing
      • hashtable.pl -- Hash tables
      • fastrw.pl -- Fast reading and writing of terms
      • prolog_trace.pl -- Print access to predicates
      • zip.pl -- Access resource ZIP archives
      • prolog_metainference.pl -- Infer meta-predicate properties
      • prolog_deps.pl -- Compute file dependencies
      • nb_rbtrees.pl -- Non-backtrackable operations on red black trees
      • help.pl -- Text based manual
      • shell.pl -- Elementary shell commands
      • check_installation.pl -- Check installation issues and features
      • qpforeign.pl -- Quintus compatible foreign loader
      • thread.pl -- High level thread primitives
      • qsave.pl -- Save current program as a state or executable
      • nb_set.pl -- Non-backtrackable sets
      • edit.pl -- Editor interface
      • rwlocks.pl -- Read/write locks
      • readln.pl -- Read line as list of tokens
      • exceptions.pl -- Exception classification
      • increval.pl -- Incremental dynamic predicate modification
      • writef.pl -- Old-style formatted write
      • vm.pl -- SWI-Prolog Virtual Machine utilities
      • files.pl
      • oset.pl -- Ordered set manipulation
      • win_menu.pl -- Console window menu
      • streams.pl -- Manage Prolog streams
      • portray_text.pl -- Portray text
      • pio.pl -- Pure I/O
 partition(:Pred, +List, ?Less, ?Equal, ?Greater) is semidet
Filter List according to Pred in three sets. For each element Xi of List, its destination is determined by call(Pred, Xi, Place), where Place must be unified to one of <, = or >. Pred must be deterministic.
See also
- partition/4