In [1]:
(define Point (type "Point" (tuple) (dict `(("__init__" : ,(func (lambda (self x y)
(setitem self "x" x)
(setitem self "y" y)
None)))))))
In [3]:
(Point 1 2)
Out[3]:
In [ ]:
(define-class NAME (bases)
(name procedure)
(name procedure))
In [12]:
! git status
In [9]:
! git add Classes\ in\ Scheme.ipynb
In [11]:
! git add Parsing.ipynb
In [13]:
! git commit -m "Updates" .
In [ ]:
! git push
In [1]:
1
Out[1]:
In [ ]: