Skip to content

Latest commit

 

History

History
85 lines (45 loc) · 1.3 KB

sequences.md

File metadata and controls

85 lines (45 loc) · 1.3 KB
title
Sequences

Sequences

Creating an empty sequence

Problem

You want to create an empty sequence.

Solution

There are two possible ways of creating new sequences.

Concatenating two (or more) sequences

Problem

You want to concatenate two or more sequences into once sequence.

Solution

Find unique members of a sequence

Problem

You have a sequence containing some duplicate elements, and you want to have only unique values.

Solution

Apply a function on all members of a sequence

Problem

You want to apply a same function on all members of a sequence without creating for-loop.

Solution

Filter a sequence on some predicate

Problem

You want to filter the sequence so only values satisfying some predicate are returned.

Solution

Problem

You want to check if all values satisfy some predicate.

Solution

Problem

You want to check if any value satisfies some predicate.

Solution