A functional programming language is designed so that programs are made of functions that, given the same inputs, always return the same outputs and do not change any shared state. Data is usually immutable, functions can be passed as values, and many languages have strong type systems that catch errors before code runs. Haskell, OCaml, F#, Erlang and Elixir are well-known examples, and mainstream languages have borrowed many of their features.
Because functional code is easier to reason about mathematically, it suits formal verification, which matters when a bug can lose money. Banks and trading firms have used functional languages for pricing and risk systems. In crypto, Cardano is written mainly in Haskell and its smart contract platform Plutus is based on it, while Tezos is implemented in OCaml and uses a stack-based contract language, Michelson, designed with verification in mind. Critics point to a smaller pool of developers than for languages such as Solidity.
Ref 1300000304