do d9 $ midicmd "stop" # s "midi" hush do cps (86/60/2) d9 $ midicmd "midiClock*48" # s "midi" do d9 $ midicmd "stop" # s "midi" hush d2 $ note ((scaleP scalePattern $ (rotR 3.5) -- $ inversion \n $ (+ slow 8 "x" <~> ((0.5 ~>) generateMelodicSeed)) -- $ slow 2 \n $ generateMelodicSeed ) - 12)#s "[pe-gtr:9,midi]" #gain 1.2 #orbit 1 #midichan 2
index > /home/xinniw/Documents/garden/Functional Programming.md

Functional Programming

:cc0: Functional Programming is a paradigm for software design. It favors implementing functionality by composition of pure function and demands that side effects be strictly separated from pure functional code.

This pure code has Referential Transparency and it is possible to reason about its behavior mathematically.

common features

The following are generally common to functional design. However, not all languages have built in support for these concepts. Trying to keep code pure can be puzzling as a computer program is inherently useless until it produces some tangible side effect. The following language features generally make this puzzle easier to solve.


index > /home/xinniw/Documents/garden/Functional Programming.md