next | previous | forward | backward | up | top | index | toc | Macaulay2 web site
FirstPackage :: firstFunction(ZZ)

firstFunction(ZZ) -- a silly first function

Synopsis

Description

i1 : firstFunction 1

o1 = Hello World!
i2 : firstFunction 0

o2 = D'oh!

Code

../../../../../Macaulay2/packages/FirstPackage.m2:16:33-16:44: --source code:
firstFunction ZZ := String => n -> if n == 1 then "Hello World!" else "D'oh!"