by shalabhc · 9y ago · 0 comments
class Point:
x y z :: Int
origin = Point 0 0 0
Point x y _ = origin
print 'Origin XY coords are ($x,$y)'
(Why is `origin =` indented at all?) print [s for s in lst if s.head != '_']
The section about dependent typing says `lst.head` would be a compile time error in some cases.