3 ms·
FP has a small set of primitives that encode everything you can computationally do. One of the first thing you'd learn is how to use those primitives, to 'emula
by athrowaway3z 1y ago
FP has a small set of primitives that encode everything you can computationally do.
One of the first thing you'd learn is how to use those primitives, to 'emulate' anything an imperative language does.
Most definitions of imperative include "unpure editing of global state", which is just the equivalent of passing along a state object implicitly to every function, which is just extra verbose for whatever fundamental type-theory point you're trying to make and would not affect the argument in terms of those fundamental primitives.