Adds samples for the clean programming language

This commit is contained in:
Joshua Moerman
2014-10-05 12:55:00 +02:00
parent 5010f32421
commit bec0052065
9 changed files with 304 additions and 0 deletions

16
samples/Clean/streams.dcl Normal file
View File

@@ -0,0 +1,16 @@
definition module streams
import StdEnv
instance zero [Real]
instance one [Real]
instance + [Real]
instance - [Real]
instance * [Real]
instance / [Real]
X :: [Real]
invert :: [Real] -> [Real]
pow :: [Real] Int -> [Real]
(shuffle) infixl 7 :: [Real] [Real] -> [Real]