prolog-lists
CommunityMaster Prolog lists with practical patterns
Authorhafley66
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Prolog list processing patterns are essential for efficiently manipulating lists, pattern matching, and transforming data in logic programs.
Core Features & Use Cases
- List structure concepts (head/tail, [|], difference between [H|T] and plain lists)
- Fundamental predicates: member/2, append/3, length/2, last/2, reverse/2
- Higher-order and multi-directional predicates: maplist, include, exclude, foldl, msort, sort
- Patterns: select/3, permutation/2, nth0/nth1, flatten/2, pairs_keys_values
- Difference lists and their use for O(1) appends
- List comprehension analogs via findall/bagof/setof
- Accumulators and tail recursion examples
- Real-world scenario: building a simple permutation generator or filtering elements
Quick Start
Experiment with sample queries in your Prolog environment to try patterns described here.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: prolog-lists Download link: https://github.com/hafley66/claude-research/archive/main.zip#prolog-lists Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.