by injidup · 4y ago · 0 comments
some_container |> map ( item -> item + 1 )
or write operations over "time" some_event_sequence |> map ( item -> item + 1 )
both are functional programming. (container0, the_world0).map(operation) = (container1, the_world1)
So it is completely symmetric with respect to time. If you don't do any side effects, then the_world "cancels out". How you decide to partition the container and the rest of the world determines how it behaves, state/time/IO/side effects. But there is no a priori notion of time.Contrast with OOP or structured imperative programming, where every object/field/register has state, and that state implicitly is a variable through time. The time is "baked in".