FAQ
 
 
Cover  \ Exhibition  \ Learning  \ Reference  \ Download  \ Discourse   
      Linguagem \ Ambiente \ Bibliotecas \ Comparação
 
   
   
Resumida (A-Z) \ Completa (A-Z)  
   
  Referência para Processing (BETA) version 91+. Se você tem uma versão anterior, utilize a documentação inclusa em seu software. Se você encontrar quaisquer erros ou tiver quaisquer comentários, leve ao nosso conhecimento.  
Nome  

contract()

   
Exemplos  
int[] ia = {0, 1, 2, 3, 4, 5, 6, 7}; 
println(ia.length);  // Prints "8" 
ia = contract(ia, 5); 
println(ia.length);  // Prints "5" 

Descrição   Decreases the size of an array. The required newSize parameter provides precise control over the decrease in size.
   
Sintaxe  
contract(array, newSize)
   
Parâmetros  
array   booleans[], bytes[], chars[], ints[], floats[], or Strings[]

newSize   positive int: new size for the array

   
Retorno   Array (the same datatype as the input)
   
Utilização   Web & Applicações
   
Relacionado   expand()
 
 






   
 
Original em inglês atualizado em: Fri Jul 15 16:35:35 PDT 2005
Tradução para o Português do Brasil: Luiz Ernesto Merkle
Atuallizada em: 30 de novembro de 2005, 9h00 (BRST)
 
 








Creative Commons License
 
  Processing é um projeto aberto iniciado por Ben Fry e Casey Reas  
  © Info