Pack Ann: requires + stoics_lib

6 views
Skip to first unread message

nicos.ang...@gmail.com

unread,
Feb 21, 2017, 6:40:25 PM2/21/17
to SWI-Prolog

New versions of packs: requires (1.0) and stoics_lib (0.1) on the server.

The requires pack facilitates loading of

 1. libs in pack aware fashion
 2. code within the files of own pack
 3. code from other packs without loading the whole pack and
 4. code from user specific library directories.


Installation

 ?- pack_install(requires).

Testing
 
 ?- use_module( library(requires) ).

 ?- lib( lists ).


Pack stoics_lib

Is an example of how to organise packs so that other users can
load part of the code base without loading the whole library.

Installation

  ?- pack_install(stoics_lib).

Example

  ?- use_module( library(requires) ).

  ?- lib( stoics_lib:kv_decompose/3 ).      % or requires( stoics_lib:kv_decompose/3 )

  ?- kv_decompose( [a-1,b-2,c-3], Ls, Ns ).

 Ls = [a,b,c],
 Ns = [1,2,3].


Documentation:
   http://stoics.org.uk/~nicos/sware/requires/doc/html/requires.html
   http://stoics.org.uk/~nicos/sware/stoics_lib/doc/html/stoics_lib.html

Web-pages:
   http://stoics.org.uk/~nicos/sware/requires/
   http://stoics.org.uk/~nicos/sware/stoics_lib/


Nicos Angelopoulos
---
http://stoics.org.uk/~nicos
Reply all
Reply to author
Forward
0 new messages