Did you know ... Search Documentation:
Packs (add-ons) for SWI-Prolog

Package "list_util"

Title:Predicates for working with lists
Rating:Not rated. Create the first rating!
Latest version:0.13.0
SHA1 sum:9b02aea7f989ccf451ac230e29885056b1a74f03
Author:Michael Hendricks <michael@ndrix.org>
Maintainer:Michael Hendricks <michael@ndrix.org>
Packager:Michael Hendricks <michael@ndrix.org>
Home page:https://github.com/mndrix/list_util
Download URL:https://github.com/mndrix/list_util/archive/v0.13.0.zip

Reviews

No reviews. Create the first review!.

Details by download location

VersionSHA1#DownloadsURL
0.0.1554fed09e58e56c6ebb60239a98b6ad4b99d339a2http://commondatastorage.googleapis.com/ndrix/list_util/list_util-0.0.1.tgz
0.0.247816fa6ec84c0040f56c7337ac561764e6d57051http://packs.ndrix.com/list_util/list_util-0.0.2.tgz
0.1.075fffaced24ba03081b505838d051e9663b3ab2d6http://packs.ndrix.com/list_util/list_util-0.1.0.tgz
0.1.15c8fffc73a02482776a3c52c72d2cfe7ce1b8e4b7http://packs.ndrix.com/list_util/list_util-0.1.1.tgz
0.1.2da38d1fa336f6c4de5d5a13081b3268497fbd90916http://packs.ndrix.com/list_util/list_util-0.1.2.tgz
0.2.04ad93705845365d354c8629f22ef09b6ce416cc21http://packs.ndrix.com/list_util/list_util-0.2.0.tgz
0.3.0da8eaf8d715164f6c938924f3e7de5fbe500c6c42http://packs.ndrix.com/list_util/list_util-0.3.0.tgz
0.4.034e21c0ba9dcb780a78fe0c92075310fe5416d943http://packs.ndrix.com/list_util/list_util-0.4.0.tgz
0.5.0cdfbf4b59853b4e89da484458857ce67a57c90152http://packs.ndrix.com/list_util/list_util-0.5.0.tgz
0.6.02ade230e52d2107e79e4b66b563474a170088d5343http://packs.ndrix.com/list_util/list_util-0.6.0.tgz
0.7.0306a2c3e0439885da2f257dd29914125afadf5de5https://github.com/mndrix/list_util/archive/v0.7.0.zip
0.8.06d4ec2bc3dad966fe8684ded321d3058804399032https://github.com/mndrix/list_util/archive/v0.8.0.zip
0.9.0a73abb413988e2afe100a083e87de8788354125b32https://github.com/mndrix/list_util/archive/v0.9.0.zip
a8e523cb0df60ecfc3fdce80cf5ccc847b65439c4https://github.com/mndrix/list_util.git
0.10.0bba0e2aa2c2386c4e8554fa45dfb2edd5427ff794https://github.com/mndrix/list_util/archive/v0.10.0.zip
0.11.04f32065aed0ab2e8f4548e28b14b984fcb6d3d9d7https://github.com/mndrix/list_util/archive/v0.11.0.zip
0.12.03295a87ea21c81321887c9a3c205cfc456d57fcd56https://github.com/mndrix/list_util/archive/v0.12.0.zip
0.13.01383c4ec80025aed4acec147cbbc22be7699f7e9741https://github.com/mndrix/list_util/archive/v0.13.0.zip
4821672b62438b08761ba117e54d4acad1a6290d2706https://github.com/mndrix/list_util.git
9b02aea7f989ccf451ac230e29885056b1a74f031https://github.com/mndrix/list_util.git

Synopsis

:- use_module(list_util, [take/3]).
?- take(2, [hello, world, etc], Words).
Words = [hello, world].

Description

Prolog code works with lots of lists. This is a collection of predicates that I've found useful from time to time across projects.

Some of these predicates are inspired by functions in Haskell's Data.List library. Prolog's reversible predicates allow us to get by with fewer definitions than Haskell needs.

See list_util.pl documentation below for details about each exported predicate.

Installation

Using SWI-Prolog 6.3 or later:

?- pack_install(list_util).

This module uses semantic versioning.

Source code available and pull requests accepted at http://github.com/mndrix/list_util

Contents of pack "list_util"

Pack contains 38 files holding a total of 49.5K bytes.