Busy. Please wait.
Log in with Clever
or

show password
Forgot Password?

Don't have an account?  Sign up 
Sign up using Clever
or

Username is available taken
show password

Your email address is only used to allow you to reset your password. See our Privacy Policy and Terms of Service.


Already a StudyStack user? Log In

Reset Password
Enter the associated with your account, and we'll email you a link to reset your password.

Few snippets of Scala programming language written in Portuguese.

        Help!  

Conceito
Código
Determinando o tamanho de uma string em Scala.   show
🗑
show val a = Array("apple", "banana", "orange") <br><br> for (e <- a) println(e)  
🗑
Aplicando uma propriedade a todos os elementos de uma lista - Usando funções anônimas (funções literais).   show
🗑
Criando listas longas em Scala sem causar erros de acesso à memória - Uso de um Stream para criar listas "preguiçosas".   show
🗑
Determinando o fatorial de um número sem criar muitas chamadas de função e uso de memória - Definição de um método com recursão de calda.   show
🗑
Usando um Stream para obter números maiores que 200 em uma sequência com 300 elementos - Uso do método filter de um Stream.   show
🗑
show val it = Iterator("a", "number", "of", "words")<br><br> it dropWhile (_.length < 2)<br><br> it.next() java.lang.String = number<br><br>  
🗑
Realizar operações sobre objetos de determinados tipos - Case Classes in Match Expressions.   show
🗑
Definindo uma função que retorna uma função e ainda permite chamadas para obter um resultado - Currying.   show
🗑
Declarando o tipo de variáveis enquanto escreve o código - Tipagem estática.   show
🗑
Escrevendo valores literais e assumindo seu tipo - Inferência de tipos   show
🗑
Passando parâmetros que não serão avaliados enquanto não forem chamados - Passagem de parâmetros por nome e avaliação tardia   show
🗑
show val t = ("Hello",1,2.3)<br><br> (java.lang.String, Int, Double) = (Hello,1,2.3)  
🗑
Estruturas que recebem mensagens e atuam quando se trata de concorrência e threading em Scala - Actors   show
🗑
show val countActor = actor {<br><br> loop {<br> react {<br> case "how many?" => {<br><br> println("I've got " + mailboxSize.toString + " messages in my mailbox.") }<br> } }<br> }  
🗑
Estrutura que agrupa dados na forma de chave->valor dentro do paradigma funcional - Maps   show
🗑
Métodos que podem parecer operadores - Métodos podem contem vários tipos de caracteres especiais.   show
🗑
Estruturas simulares às interfaces em Java, Traits são poderosos porque podem ser implementados de acordo com a necessidade. Nem todos os métodos são obrigatórios.   show
🗑
show object Breed extends Enumeration {<br><br> val doberman = Value("Doberman Pinscher")<br><br> val yorkie = Value("Yorkshire Terrier")<br><br> (...)<br> } for (breed <- Breed) println(breed.id + "\t" + breed)<br><br> 0 Doberman Pinscher<br> (...)  
🗑
Pacote que pode converter (implicitamente) valores que vieram de Java para valores em Scala - JavaConversions.   show
🗑


   

Review the information in the table. When you are ready to quiz yourself you can hide individual columns or the entire table. Then you can click on the empty cells to reveal the answer. Try to recall what will be displayed before clicking the empty cell.
 
To hide a column, click on the column name.
 
To hide the entire table, click on the "Hide All" button.
 
You may also shuffle the rows of the table by clicking on the "Shuffle" button.
 
Or sort by any of the columns using the down arrow next to any column heading.
If you know all the data on any row, you can temporarily remove it by tapping the trash can to the right of the row.

 
Embed Code - If you would like this activity on your web page, copy the script below and paste it into your web page.

  Normal Size     Small Size show me how
Created by: albarros
Popular Engineering sets