2023.05.16
What is the concept of a functional language also adopted by Scala? Learn its characteristics in the pure functional language Haskell.
Although it is difficult to clearly define a functional language, this article considers the following. While procedural languages are mainly programmed by combining statements and instructions, functional languages are mainly written by combining expressions and functions. Now, to compare the differences between procedural and functional languages, let's look at a program that computes the least common multiple of integers n1 and n2.