Skip to content

14-editor-surfaces ​

Source: examples/14-editor-surfaces.metta

Imports ​

  • math

Symbols ​

SymbolKindType
CircletypeShape
ShapetypeType
SquaretypeShape
describe-shapefunction(describe-shape $x $y)
perimeterfunction(-> Shape Number Number)
scale-squarefunction(scale-square $x)
$nameconstantShape

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

Released under the Apache-2.0 License.