Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

CodeSignal

Functional Programming Techniques

via CodeSignal

Overview

Unlimited AI-Powered Learning
Level up your skills! Get 34% off Cosmo+ with code HOLIDAY24. Limited time only!
This course dives into the intricacies of functional objects in C++, with a focus on functors, currying, and partial application. You'll learn how to harness these powerful concepts to create more modular, reusable, and maintainable code.

Syllabus

  • Lesson 1: Introduction to Currying and Partial Application
    • Transform Function into Curried Function
    • Update Logging Functions to Use Partial Application
    • Fix the Curried Multiplication Function
    • Calculate Total Cost with Partial Application
    • Currying with String Concatenation
  • Lesson 2: Advanced Currying in C++
    • Currying for Basic Arithmetic Operations
    • Server Configuration Using Currying
    • Curried Function for Calculating Cost
    • Add Timestamp to Curried LogMessage Function
  • Lesson 3: Creating Functional Objects
    • Modify Functor to Filter Younger People
    • Create a Functor Class to Filter Numbers within Range
    • Divisibility Filter Using Functor
    • Create a Functor for Multiplying Elements in a Vector
    • Combining Filtering and Transformation Functors
  • Lesson 4: Advanced Example with Functional Objects
    • Add Function to Print Original Salaries
    • Adjusting Product Prices with Functors
    • Apply Multiple Functors

Reviews

Start your review of Functional Programming Techniques

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.