Challenges by default ask for submissions that are either functions or complete programs. Historically Brain-Flak submissions have been complete programs because there is no way to define functions like in other languages.
However code Snippets in Brain-Flak can be thought of as functions because they do return a value.
For example:
In Brain-Flak,
()()()()
is arguably the same thing as
lambda:4
in Python.
The latter would be a valid answer if the question was a kolmogorov-complexity question to output 4 so why not the former?
The argument for functions with input is a little more tenuous since the Stack is more like a global variable than a input, but one might say that
{({})({}[()])}{}
and
lambda x:x**2
are equivalent and thus the former is also a function. To what extent can snippets written in Brain-Flak (and other Flaks such as Brain-Flueue or Micro-Flak) be considered functions for PPCG submissions?
lambda: 4
rather than just4
. There is no way to reference the function without using the entire thing so it's much rather a code snippet \$\endgroup\$