log
graph
tags
bookmarks
branches
changeset
browse
file
latest
diff
comparison
annotate
file log
raw
help
Mercurial
>
hg
>
Members
>
nobuyasu
>
scala
comparison chapter7/recursive.scala @ 0:
b316eec6fa7a
draft
default
tip
Find changesets by keywords (author, files, the commit message), revision number or hash, or
revset expression
.
add sample files
author
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
date
Tue, 08 Jan 2013 16:41:46 +0900
parents
children
comparison
equal
deleted
inserted
replaced
-1:000000000000
0:b316eec6fa7a
1
def searchFrom(i: Int): Int =
2
if (i >= args.length) -1
3
else if (args(i).startsWith("-")) searchFrom(i+1)
4
else if (args(i).endsWith(".scala")) i
5
else searchFrom(i + 1)
6
val i = searchFrom(0)
7