## Recursion, List Manipulation, and Lazy Evaluation

The remaining three characteristics of functional programming are told quite quickly: Recursion, manipulation of lists and lazy evaluation.

Views: 27775

## Pure Functions

Pure functions are quite similar to mathematical functions. They are the reason that Haskell is called a pure functional programming language.

Views: 22739

## Immutable Data

A key to pure functional languages is that their data are immutable. Therefore, assignments such as x= x+1 or ++x are not possible in the pure functional language Haskell. The consequence is that Haskell supports no loops like for, while, or until. They are based on the modification of a loop variable. Haskell does not modify existing data; Haskell creates new data when needed and reuses the old ones.

Tags: constexpr
Views: 18600

## Higher-Order Functions

Higher-order functions are the pendant to First-Class Functions because higher-order functions can take functions as an argument or return them as a result.

Views: 58553

## First-Class Functions

One of the characteristics of functional programming is first class functions. First-class functions behave like data and are heavily used in the Standard Template Library.

Views: 27733

## The Definition of Functional Programming

The definition of functional programming is quite easy. Functional programming is the programming with mathematical functions. Is that all? Of course, not!

Views: 53375

## Functional in C++17 and C++20

Which functional feature can we expect with C++17, for which functional feature can we hope for with C++20? This is exactly the question I will concisely answer in this post.

Tags: C++20, C++17
Views: 75720

## Functional in C++11 and C++14: Dispatch Table and Generic Lambdas

My favourite example the dispatch table shows how nice the features in modern C++ work together. A dispatch table is a table of pointers to functions. In my case, it is a table of handles to polymorphic function wrappers.

Tags: lambdas
Views: 61930

## Functional in TR1 and C++11

In this post, our journey through the functional features of classical, modern, and future C++ continues. Today, we stop in the present.

Tags: auto
Views: 20881

## Functional in C++98

C++ is not a functional programming language but you can program in a functional style. What are the functional features in C++? I will answer this question for C++98.

Views: 26877

### Subscribe to the newsletter (+ pdf bundle)

 Name Email Please enable the javascript to submit this form

### Visitors

Today 356

Yesterday 7013

Week 15279

Month 90330

All 6111394

Currently are 174 guests and no members online

• #### std::span in C++20: Bounds-Safe Views for Sequences of Objects

I should clarify. I mean that std::span automatically deduces the size of a contiguous sequence ...

• #### std::span in C++20: Bounds-Safe Views for Sequences of Objects

Thanks for the write-up. Question/comment: as far as I understand span is not bounds-safe.

• #### C++ Core Guideline: The Guideline Support Library

Hi, Could this library be used in other platforms, especially embedded systems platforms? Thanks

• #### Executing a Future in a Separate Thread with Coroutines

What is the rationale for starting a new thread only to wait until this new thread is finished? It ...

• #### More Powerful Lambdas with C++20

Unfortunately, C++ lambdas are of limited value. In fact, anything that requires the auto keyword ...