• Places
    • Home
    • Graphs
    • Prefixes
  • Admin
    • Users
    • Settings
    • Plugins
    • Statistics
  • CPACK
    • Home
    • List packs
    • Submit pack
  • Repository
    • Load local file
    • Load from HTTP
    • Load from library
    • Remove triples
    • Clear repository
  • Query
    • YASGUI SPARQL Editor
    • Simple Form
    • SWISH Prolog shell
  • Help
    • Documentation
    • Tutorial
    • Roadmap
    • HTTP Services
  • Login

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

  • swipl
    • library
      • error.pl
      • debug.pl
      • 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
      • quasi_quotations.pl
      • url.pl
      • www_browser.pl -- Open a URL in the users browser
      • prolog_colour.pl -- Prolog syntax colouring support.
      • record.pl
      • prolog_xref.pl
      • occurs.pl -- Finding and counting sub-terms
      • ordsets.pl
      • assoc.pl -- Binary associations
      • ugraphs.pl
      • solution_sequences.pl
      • atom.pl
      • prolog_pack.pl -- A package manager for Prolog
      • git.pl -- Run GIT commands
      • ctypes.pl
      • utf8.pl
      • base64.pl -- Base64 encoding and decoding
      • persistency.pl -- Provide persistent dynamic predicates
      • pure_input.pl
      • nb_set.pl
      • aggregate.pl
      • csv.pl -- Process CSV (Comma-Separated Values) data
      • iostream.pl -- Utilities to deal with streams
      • dialect.pl -- Support multiple Prolog dialects
      • apply_macros.pl -- Goal expansion rules to avoid meta-calling
      • yall.pl
      • prolog_code.pl -- Utilities for reasoning about code
      • dif.pl -- The dif/2 constraint
      • thread.pl -- High level thread primitives
      • predicate_options.pl
      • rbtrees.pl
      • nb_rbtrees.pl
      • sandbox.pl -- Sandboxed Prolog code
      • prolog_format.pl -- Analyse format specifications
      • random.pl -- Random numbers
      • pprint.pl -- Pretty Print Prolog terms
      • modules.pl -- Module utility predicates
      • lazy_lists.pl
      • edinburgh.pl -- Some traditional Edinburgh predicates
      • prolog_clause.pl
      • prolog_breakpoints.pl -- Manage Prolog break-points
      • dicts.pl
      • prolog_profile.pl -- Execution profiler
      • codesio.pl
      • date.pl
      • prolog_stack.pl -- Examine the Prolog stack
      • listing.pl -- List programs and pretty print clauses
      • statistics.pl -- Get information about resource usage
      • charsio.pl -- I/O on Lists of Character Codes
      • backcomp.pl -- Backward compatibility
      • check.pl
      • prolog_codewalk.pl -- Prolog code walker
      • quintus.pl
      • coinduction.pl
      • optparse.pl -- command line parsing
      • make.pl
      • oset.pl -- Ordered set manipulation
      • edit.pl
      • base32.pl
      • wfs.pl -- Well Founded Semantics interface
      • heaps.pl
      • increval.pl
      • tables.pl
      • fastrw.pl
      • system.pl -- System utilities
      • ansi_term.pl -- Print decorated text to ANSI consoles
      • streams.pl
      • sort.pl
      • terms.pl
      • varnumbers.pl -- Utilities for numbered terms
      • when.pl
      • prolog_versions.pl
      • prolog_jiti.pl
      • macros.pl
      • prolog_wrap.pl
      • rwlocks.pl
      • prolog_config.pl
      • prolog_metainference.pl
      • prolog_coverage.pl
      • strings.pl
      • zip.pl
      • prolog_autoload.pl
      • prolog_debug.pl
      • shell.pl
      • files.pl
 maplist(:Goal, ?List1)
 maplist(:Goal, ?List1, ?List2)
 maplist(:Goal, ?List1, ?List2, ?List3)
 maplist(:Goal, ?List1, ?List2, ?List3, ?List4)
True if Goal is successfully applied on all matching elements of the list. The maplist family of predicates is defined as:
maplist(G, [X_11, ..., X_1n],
           [X_21, ..., X_2n],
           ...,
           [X_m1, ..., X_mn]) :-
   call(G, X_11, ..., X_m1),
   call(G, X_12, ..., X_m2),
   ...
   call(G, X_1n, ..., X_mn).

This family of predicates is deterministic iff Goal is deterministic and List1 is a proper list, i.e., a list that ends in [].

ClioPatria (version V3.1.1-59-g7b9a7a3)