aboutsummaryrefslogtreecommitdiffhomepage
path: root/docs/wiki_src/coding/uniform-function-call-syntax.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/wiki_src/coding/uniform-function-call-syntax.md')
-rw-r--r--docs/wiki_src/coding/uniform-function-call-syntax.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/wiki_src/coding/uniform-function-call-syntax.md b/docs/wiki_src/coding/uniform-function-call-syntax.md
index e69de29..3999961 100644
--- a/docs/wiki_src/coding/uniform-function-call-syntax.md
+++ b/docs/wiki_src/coding/uniform-function-call-syntax.md
@@ -0,0 +1,14 @@
+# Uniform function call syntax (UFCS)
+
+UFCS is a syntactic feature that allows you to use functions in a
+different (perhaps more "natural") order.
+
+By using the dot `.` between two terms, the first term will be applied
+to the second term instead of the other way around.
+
+Example:
+
+``` bruijn
+:test ("abc".length) (length "abc")
+:test ("abc".length.inc) ((+4))
+```