Answer by Tikhon Jelvis for Declaring data types
Your Object a type works for all types a. So if you have a value of Object a (as you do in your function), you know nothing about what a is--particularly, you do not know that it is a value of type Row...
View ArticleDeclaring data types
I have a data type which I am using to represent rows of columns and columns of rows:data Object a = Row a |Column adata Row a = Object a | Left(Row a)(Row a)data Column a = Object a | Above(Column...
View Article
More Pages to Explore .....