+#----------------------------------------------------------------------
+# Text functions.
+
+# Sort + uniq a list.
+pure function sort (xs) returning strings = @{
+ for f in %xs; do echo "$f"; done | sort -u
+}
+
+#----------------------------------------------------------------------
+# File functions.
+