What is Functional programming (FP) - Collection Operations

Card Puncher Data Processing

About

In Functional programming (FP), you will pass functions to other functions as parameters.

It is a declarative paradigm that treats computation as the evaluation of mathematical functions.

With functional programming (FP), the code is organized around:

Imperative vs Functional

imperative vs Functional 1)

Imperative Vs Functional

Features

Composition: Algebraic data type

The application of several function programming operations creates a composite type called a Algebraic data type

In the same vein that SQL,

  • some operation defines a logical plan (meaning that you build a metadata object, there is no data movement)
  • some operation triggers the execution (generally known as the terminal operation).

Reproducibility

Multiple invocations of a function at different points in time will always return the same output as long as the input remains the same. It makes it easy to understand and predict the behavior of the program.

Data Concurrency Simplification

The five collection operations functions hold a key to simplifying asynchronous programming and avoiding race conditions, propagating and handling asynchronous errors, and sequence events and requests.

Collections Function Operations

Functional programming defines standard functions on collections.

Most of the operations, you perform on collections can be accomplished with this five pure functions:

Others functions:

Language

Nix

Nix is a pure function language.

Java

JVM based Functional Programming Languages

Library

  • ReactiveX - ReactiveX: A library for composing asynchronous and event-based programs using observable sequences for the Java VM, Javascript
  • https://ramdajs.com/ - Javascript

2) 3) 4) 5) 6)





Discover More
Data System Architecture
(Collection|Container) Data Type (Set, Bag, Sequence)

A collection is a abstract data type for grouping together multiple values. It's therefore sometime known as a container and creates a aggregation relationship A collection is: an object that groups...
Data System Architecture
Asynchronous programming (Concurrency | Parallel)

application Asynchronous programming is notoriously difficult because the order of operations is highly unpredictable. From a classic computing perspective, concurrent and parallel are clearly synonyms...
Imperative Vs Functional
Code - Imperative Programming

Imperative vs Functional mariofusco/status/571999216039542784 Imperative vs reactive programming In an imperative programming setting, the expression a:=b+c would mean that a is being assigned the...
Card Puncher Data Processing
Computer Language

A programming language is a interface to the control of a CPU effectively controlling a computer. A language is a (possibly infinite) set of string all of which choose their symbols from some one alphabet....
Card Puncher Data Processing
Data Processing - Reactive Stream Processing

Reactive Streams is the standard/specification for reactive data processing (ie observer, asynchronous processing) The characteristics are: functional programming fashion non-blocking backpressure...
Card Puncher Data Processing
Data Processing - Data Flow (ETL | Workflow | Pipeline)

A data flow is a workflow specialized for data processing Any system where the data moves between code units and triggers execution of the code could be called dataflow Dataflow_architecturecomputer...
Model Funny
Function - High Order Function

Higher-order functions are the basis of functional programming. Higher-order functions are functions that: take other functions as arguments or return functions as their result. See also: Duplicate...
Card Puncher Data Processing
Functional Programming - Map

A page the map functional programming function The map method creates a new collection with the results of calling a provided function on every element in the collection. The map operation produces...
Card Puncher Data Processing
Functional Programming - FindFirst

This page is the FindFirst function in the functional programming paradigm. As its name indicates, it will find the first element in the collection. It's generally followed by a delivery function such...
Card Puncher Data Processing
Functional Programming - Functional Interface

A functional interface is a interface with only one single method that is the basic building block of functional programming. event-driven processfunctional interfaceevent handler Type Default function...



Share this page:
Follow us:
Task Runner