Tacit programming: Difference between revisions

Content deleted Content added
jq: [1,2] is a filter
Line 193:
 
In the section on Python in this article, the following Python definition is considered:
<syntaxhighlight lang="python">
 
def example(x):
return baz(bar(foo(x)))
</syntaxhighlight>
 
In point-free style, this could be written in Python as:
<syntaxhighlight lang="python">
example = compose(foo, bar, baz)
</syntaxhighlight>
 
In jq, the equivalent point-free definition would be:
 
def example: foo | bar | baz;