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: 464033ef30d8de7879e8194fb75530abcf660fd9 (
plain
) (
blame
)
1
2
3
4
5
object
Test
{
def
faculty
(
x
:
int
)
=
if
(
x
==
0
)
1
else
x
*
faculty
(
x
-
1
)
}