14-editor-surfaces
Source: examples/14-editor-surfaces.metta
Imports
math
Symbols
| Symbol | Kind | Type |
|---|---|---|
Circle | type | Shape |
Shape | type | Type |
Square | type | Shape |
describe-shape | function | (describe-shape $x $y) |
perimeter | function | (-> Shape Number Number) |
scale-square | function | (scale-square $x) |
$name | constant | Shape |
Types
Circle
Kind: type
metta
(: Circle Shape)Source: examples/14-editor-surfaces.metta:23
Shape
Kind: type
metta
(: Shape Type)Source: examples/14-editor-surfaces.metta:21
Square
Kind: type
metta
(: Square Shape)Source: examples/14-editor-surfaces.metta:22
Functions
describe-shape
Kind: function
metta
(describe-shape $x $y)Source: examples/14-editor-surfaces.metta:40
perimeter
Kind: function
metta
(: perimeter (-> Shape Number Number))Source: examples/14-editor-surfaces.metta:30
scale-square
Kind: function
metta
(scale-square $x)Source: examples/14-editor-surfaces.metta:35
Constants
$name
Kind: constant
metta
(: $name Shape)Source: examples/14-editor-surfaces.metta:52