There's a word I can't remember that means, essentially, "has no side effects, has no randomness, and accepts no input other than user input", and describes a function for which, given an input X, always returns the same input Y, and given an input X1,...
-
There's a word I can't remember that means, essentially, "has no side effects, has no randomness, and accepts no input other than user input", and describes a function for which, given an input X, always returns the same input Y, and given an input X1, always returns the same input Y1, which is not necessarily the same as Y.
It's not "idempotent", which is "always gives the same result regardless of input", but I can't think of what it is.
-
trwnh@mastodon.socialreplied to noelle@chat.noelle.codes last edited by
@noelle "pure"?
-
noelle@chat.noelle.codesreplied to trwnh@mastodon.social last edited by
-
trwnh@mastodon.socialreplied to noelle@chat.noelle.codes last edited by
@noelle @mage ah, the parts about "no side effects" and "accepting user input" threw me off. determinism has to do with external causes and initial state, and is usually used to describe systems or algorithms or machines, not quite functions. for example "deterministic finite automata" refers to the class of state machines where there are n possible states and some way of moving consistently from any current state to adjacent states. https://en.wikipedia.org/wiki/Deterministic_finite_automaton