whatisgithub

What is fpcpp?

jdduke/fpcpp — explained in plain English

Analysis updated 2026-07-07 · repo last pushed 2012-06-01

21C++Audience · developerComplexity · 2/5DormantSetup · easy

In one sentence

fpcpp is a lightweight, header-only C++11 library that brings functional programming tools like map, filter, curry, and function composition to C++ without heavy dependencies.

Mindmap

mindmap
  root((repo))
    What it does
      Functional programming for C++
      Map filter and fold
      Currying and composition
    Tech stack
      C++11
      CMake
      Header-only design
    Use cases
      Concise data processing
      Composable math operations
      Functional style experiments
    Audience
      C++ developers
      Functional paradigm explorers
    Inspiration
      Inspired by Haskell
      Bridge to C++
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Write concise data processing logic using chained map, filter, and fold operations.

USE CASE 2

Create reusable, composable building blocks for mathematical operations like vector norms.

USE CASE 3

Estimate pi through random sampling using functional programming patterns in C++.

What is it built with?

C++11CMake

How does it compare?

jdduke/fpcppswordfatih/reflectcraftsmantweezers95/unlocker-phone-tool-2026
Stars212120
LanguageC++C++C++
Last pushed2012-06-01
MaintenanceDormant
Setup difficultyeasyhardmoderate
Complexity2/54/52/5
Audiencedeveloperdeveloperops devops

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Header-only library, just include the headers in your C++11 project, no separate compilation step needed.

No license information is provided in the repository, so usage terms are unclear.

So what is it?

fpcpp is a lightweight C++ library that brings functional programming techniques into C++11. For developers who appreciate the clean, expressive style of languages like Haskell but need to work in C++, it provides familiar tools like map, filter, curry, and function composition without requiring a heavy setup or complex dependencies. At a practical level, the library lets you write code in a more declarative way. Instead of writing loops to process lists of data, you can chain operations together, for instance, filtering a list, mapping a function over the results, and folding everything into a single value. The README shows examples like estimating pi through random sampling and composing mathematical functions to calculate vector norms. It achieves this using a header-based design, meaning you essentially just include the library's files in your project rather than dealing with a separate compilation step. The primary audience is C++ developers who want to experiment with or apply functional programming patterns in their codebase. Someone might use this to write more concise data processing logic or to create reusable, composable building blocks for mathematical operations. The inclusion of features like currying (fixing certain arguments of a function to create a new, simpler function) suggests it appeals to those who enjoy exploring different programming paradigms within a single language. The project is notably inspired by Haskell, a purely functional programming language, and serves as a bridge between that world and C++. It is built for C++11 and uses the CMake build system for its included tests. Beyond the examples provided, the README directs readers to an INSTALL file for usage details and does not go into further depth on additional features or long-term maintenance plans.

Copy-paste prompts

Prompt 1
Show me how to use fpcpp to chain filter, map, and fold operations on a list of numbers in C++11.
Prompt 2
Using fpcpp, write a C++ example that estimates pi through random sampling with functional programming.
Prompt 3
How do I include fpcpp as a header-only library in my C++ project and use curry to fix function arguments?
Prompt 4
Using fpcpp, compose mathematical functions in C++11 to calculate a vector norm.

Frequently asked questions

What is fpcpp?

fpcpp is a lightweight, header-only C++11 library that brings functional programming tools like map, filter, curry, and function composition to C++ without heavy dependencies.

What language is fpcpp written in?

Mainly C++. The stack also includes C++11, CMake.

Is fpcpp actively maintained?

Dormant — no commits in 2+ years (last push 2012-06-01).

What license does fpcpp use?

No license information is provided in the repository, so usage terms are unclear.

How hard is fpcpp to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is fpcpp for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.