2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-25 22:38:04 +02:00

Added Scala example

This commit is contained in:
Martin Thoma 2014-03-10 15:39:59 +01:00
parent 420b6b31fd
commit 7e76256e4e
8 changed files with 60 additions and 5 deletions

View file

@ -1,4 +1,5 @@
type Prename = String
type Age = Double
type Person = (Prename, Age)
type Friends = [Person]
type Friends = [Person]
type Polynom = [Double]

View file

@ -0,0 +1,4 @@
data Bool = False | True
data Color = Red | Green | Blue | Indigo | Violet
data Tree a = Leaf a | Branch (Tree a) (Tree a)
data Point = Point Float Float deriving (Show)