Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
14
Task/Compound-data-type/Lasso/compound-data-type.lasso
Normal file
14
Task/Compound-data-type/Lasso/compound-data-type.lasso
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
define Point => type {
|
||||
parent pair
|
||||
|
||||
public onCreate(x,y) => {
|
||||
..onCreate(#x=#y)
|
||||
}
|
||||
|
||||
public x => .first
|
||||
public y => .second
|
||||
}
|
||||
|
||||
local(point) = Point(33, 42)
|
||||
#point->x
|
||||
#point->y
|
||||
Loading…
Add table
Add a link
Reference in a new issue