To filter the folders (i.e., directories) available in the current context, the following property can be used with a predicate:$_.psiscontainer
In essence, it returns a boolean indicating whether the current object
By invoking the following powershell commands, svn binding can be removed effectively from the current source directory.
[gist]4726680[/gist]
It just traverses all the subdirectories of the current directory and remove its
In Scala, an instance of Set can be declared as follows.
val s = (1 to 6).toSet
Principle difference between sets and sequences are three:
* Sets are unordered
val s = (1 to 6)
Fold is a general purpose operation on list (e.g., List[A]), which involves iterating (over each element) and applying a binary function--
f: A -> B -> B
to reduce
Functions in Scala can be defined simply as follows:
def fnname (args)={
// function body
}
Implementing loop can be done in following manner.
def whileLoop{
var i = 1
while (i<=3) {
println (i)