index
:
scala
2.10.x
2.11.x
2.12.x
2.8.x
2.9.x
SI-10027-test
gh-pages
javadoc
javadoc-dirty-hack
legacy/msil
scaladoc-include-assets
script-linux
wip-javadoc
The Scala programming language
summary
refs
log
tree
commit
diff
log msg
author
committer
range
path:
root
/
test
/
files
/
neg
/
faculty.scala
blob: 1f137a48fa80e25d5b2d1b9d0bb74f253ddf1f5d (
plain
) (
blame
)
1
2
3
4
5
object
Test
{
def
faculty
(
x
:
Int
)
=
if
(
x
==
0
)
1
else
x
*
faculty
(
x
-
1
)
}