summaryrefslogtreecommitdiff
path: root/source/comp/hr.d
diff options
context:
space:
mode:
Diffstat (limited to 'source/comp/hr.d')
-rw-r--r--source/comp/hr.d11
1 files changed, 11 insertions, 0 deletions
diff --git a/source/comp/hr.d b/source/comp/hr.d
new file mode 100644
index 0000000..fa4d32b
--- /dev/null
+++ b/source/comp/hr.d
@@ -0,0 +1,11 @@
+module comp.hr;
+
+string hr(int col) {
+ string ps;
+
+ foreach (i; 0 .. col) {
+ ps ~= '—';
+ }
+
+ return ps;
+}