|
|
|
|
|
by babel17
5444 days ago
|
|
- When you change a function b so that it depends on the number of times a has been called, then this is a pretty deep change; but yes, it should be simple to do in situations like logging etc. - Single-assignment really has NOTHING to do with purely functional programming; see my article "Purely Functional Structured Programming" or my (purely functional) programming language Babel-17 (www.babel-17.com) - Random is an interesting operation; it is not purely-functional, but can be considered side-effect free; so it is not really imperative, either (although implementations via seed are) |
|