Menu
Home
Log in / Register
 
Home arrow Computer Science arrow Building Applications with Scala
Source

A list of all methods using the Scala REPL

Following are the list of all methods using the Scala REPL:

$ scala

Welcome to Scala 2.11.8 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_77).

Type in expressions for evaluation. Or try :help.

scala>val c = Some("one")

c: Some[String] = Some(one)

scala>c.

++

count

foreach

iterator

productArity

seq

toBuffer

unzip

++:

drop

genericBuilder

last

productElement

size

toIndexedSeq

unzip3

/:

dropRight

get

lastOption

productIterator slice

toIterable

view

:

dropWhile

getOrElse

map

productPrefix

sliding

toIterator

withFilter

WithFilter

equals

groupBy

max

reduce

span

toLeft

x

addString

exists

grouped

maxBy

reduceLeft

splitAt

toList

zip

aggregate

filter

hasDefiniteSize

min

reduceLeftOption stringPrefix toMap

zipAll

canEqual

filterNot

hashCode

minBy

reduceOption

sum

toRight

zipWithIndex

collect

find

head

mkString

reduceRight

tail

toSeq

collectFirst

flatMap

headOption

nonEmpty

reduceRightOption tails

toSet

companion

flatten

init

orElse

repr

take

toStream

contains

fold

inits

orNull

sameElements takeRight

toString

copy

foldLeft

isDefined

par

scan

takeWhile

toTraversable

copyToArray

foldRight

isEmpty

partition

scanLeft

to

toVector

copyToBuffer

forall

isTraversableAgain product

scanRight

toArray

transpose

scala>c

A- ? л

?

Scala class, traits, and OO programming

As a hybrid post-functional language, Scala allows you to write OO code and create classes as well. Right now we will learn how to create classes and functions inside classes, and also how to work with traits, which are similar to Java interfaces in concept but way more powerful in practice.

 
Source
Found a mistake? Please highlight the word and press Shift + Enter  
< Prev   CONTENTS   Next >
 
Subjects
Accounting
Business & Finance
Communication
Computer Science
Economics
Education
Engineering
Environment
Geography
Health
History
Language & Literature
Law
Management
Marketing
Mathematics
Political science
Philosophy
Psychology
Religion
Sociology
Travel