summaryrefslogtreecommitdiff
path: root/examples/either.sin
diff options
context:
space:
mode:
authorTom Harley2020-01-11 19:46:15 +0000
committerTom Harley2020-01-11 19:46:15 +0000
commit9e87372371794bc3e7d46698141966c00acaad0e (patch)
tree068da13d97cefed2e49ab06843e1dd9d97c32f6a /examples/either.sin
parentAdded int width specifiers (diff)
downloadsinter-9e87372371794bc3e7d46698141966c00acaad0e.tar.gz
sinter-9e87372371794bc3e7d46698141966c00acaad0e.zip

Tidying up

  • Removed unused example files
  • Removed redundant common.c
  • Added extra files to make sure the current version compiles the nqueens solution correctly
  • Added extensionless files to .gitignore
  • Added a way to install sinter
Diffstat (limited to 'examples/either.sin')
-rw-r--r--examples/either.sin25
1 files changed, 0 insertions, 25 deletions
diff --git a/examples/either.sin b/examples/either.sin
deleted file mode 100644
index e16b7b8..0000000
--- a/examples/either.sin
+++ /dev/null
@@ -1,25 +0,0 @@
-[type left_ [kind val]]
-[type right_ [kind val]]
-
-[def left [val]
- [left_ 0 val]]
-
-[def right [val]
- [right_ 1 val]]
-
-[def left.val [x]
- [left_.val x]]
-
-[def right.val [x]
- [right_.val x]]
-
-[def is_right [x]
- [right_.kind x]]
-
-[def Either.>>= [a f]
- [if [is_right a]
- [f [right.val a]]
- a]]
-
-[def Either.return [x]
- [right x]]