Sequences

Descrição

Flash Cards for Sequences
Carl Patchett
FlashCards por Carl Patchett, atualizado more than 1 year ago
Carl Patchett
Criado por Carl Patchett mais de 7 anos atrás
10
0

Resumo de Recurso

Questão Responda
What is a Sequence? A Sequence is a collection of objects, where the objects are in a prescribed order and the same object can occur more than once.
How are Sequences denoted? Sequences are denoted using the brackets < >. E.G < 1, 2, 3 >
What are the operations used on Sequences? The operations used on Sequences are 'len', 'head', 'tail' and 'concatenation'.
What is the 'len' operator? The 'len' operator returns the length of the Sequence. E.G len S = 0 if S = <> len S = 1 if S = <S[1]>
What is the 'head' operator? The 'head' operator requires a NON-EMPTY Sequence, and returns the first element. E.G head S = S[1]
What is the 'tail' operator? The 'tail' operator requires a NON-EMPTY Sequence, and returns the Sequence obtained by removing the first element. E.G tail S = < > if S has length 1
What is the 'concatenation' operator? The 'concatenation' operator requires two Sequences, where the first sequence is followed by the elements of the second sequence IN ORDER.

Semelhante

Temas de Estudio: Primer Mes
Gabriel Villegas
Vocabulary - period #3 - Group of Terminale
Dominique TREMULOT
Arithmetic progression
Pooja Kapoor
Sequences
Dominique TREMULOT
PROCESSOS DE FORMAÇÃO DAS PALAVRAS - Morfologia
Viviana Veloso
Introdução à Estatística
balthasartiago
Provas anteriores de Vestibular - Unicamp 2014 - 1
GoConqr suporte .
Resumo global da matéria de Biologia e Geologia (10.º e 11.º anos)_2
Sofia Oliveira
PROTAGONISMO DO ALUNO
Alessandra S.
Genética e Síndromes
Gabi4438