Everything is a function

In Shang, function is a facet of almost any data type, therefore almost anything can be used as a function. In particular, For example, the function can be created by f = (5, -3), while the function

can be created by
f = {0 => 1, 1 => 2, 2 => 3, 3 => 4, 4 => 5, 5 => 0};

oz 2009-12-22