diff options
author | Mart Lubbers | 2015-02-06 08:39:37 +0100 |
---|---|---|
committer | Mart Lubbers | 2015-02-06 08:39:37 +0100 |
commit | 379b6353396ca2401241d714733d570629835ffe (patch) | |
tree | 26652c854a79c627b5f50bc8ac26f9b84f8e196d /files/practicum/RomeinsGetal.icl | |
parent | Merge branch 'master' of https://github.com/dopefishh/fp1 (diff) |
added practicum files, updated gitignore
Diffstat (limited to 'files/practicum/RomeinsGetal.icl')
-rw-r--r-- | files/practicum/RomeinsGetal.icl | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/files/practicum/RomeinsGetal.icl b/files/practicum/RomeinsGetal.icl new file mode 100644 index 0000000..4f85866 --- /dev/null +++ b/files/practicum/RomeinsGetal.icl @@ -0,0 +1,13 @@ +implementation module RomeinsGetal
+
+import StdEnv
+
+Start :: [Roman]
+Start = [fromInt 42, fromInt 999, fromInt 1024]
+
+
+:: RD = M | D | C | L | X | V | I
+:: Roman = Roman [RD]
+
+instance toInt Roman where // maak deze instantie af
+instance fromInt Roman where // maak deze instantie af
|