Skip to content

mooseman/pdfpc

Repository files navigation

*** README - pdfpc *** *** Public Domain Functional Programming in C ***

This small project is aimed at creating some public-domain C code (using a functional-programming approach) for manipulating data structures - mostly arrays.

The aim is for pdfpc to eventually cover all of the following areas. Note that Lpred and Lsucc are different to Haskell's "pred" and "succ" functions.
Those functions work on enums - these ones work on arrays (a few work on strings).

Function Status Description
All - Returns TRUE if all elements in an array meet a specified condition.
Any - Returns TRUE if at least one element in an array meets a specified condition.
Append - Append two arrays.
Concat - Concatenate two array elements.
Count Done Count the number of elements in an array which meet a specified condition.
Drop - Drop elements from an array.
Elem Done Array membership ( the "in" operator ).
ElemIndex - The index (if any) of the first occurrence of an element.
Filter Done Filter an array according to some criteria.
Find Done Find an element in an array.
FindIndex Done Find the index of the first element in a list which satisfies a condition.
FindIndices Done Find the indices of ALL elements in a list which satisfy a condition.
Head Done Find the head of an array.
Intersperse Done Intersperse characters through a string.

This code is released to the public domain. "Share and enjoy....." ;)

About

Public domain functional programming in C.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages