Top "Sequences" questions

A sequence is an ordered list of objects (or events).

In Clojure, when should I use a vector over a list, and the other way around?

I read that Vectors are not seqs, but Lists are. I'm not sure what the rationale is for using one …

list vector clojure sequences
Comprehension for flattening a sequence of sequences?

If I have sequence of sequences (maybe a list of tuples) I can use itertools.chain() to flatten it. But …

python sequences list-comprehension
Db2: How to update the current value of a sequence

We use a sequence in a Db2 database. Recently, we have migrated the data from an AIX server to a …

sql db2 sequences database-sequence
Sequence contains no elements exception in linq without even using Single

I am not using Single in LINQ below, but I am still getting a 'Sequence contains no elements' exception: allNames = …

c# string linq linq-to-objects sequences
Detecting sequence of at least 3 sequential numbers from a given list

I have a list of numbers e.g. 21,4,7,9,12,22,17,8,2,20,23 I want to be able to pick out sequences of sequential numbers (…

c# logic sequences
What does Python treat as reference types?

I assumed sequence types in Python were value types. It turns out they're reference types (Meaning that the value of …

python sequences value-type reference-type
Kotlin sequence "skip" first N entries

How can I "skip" the first N entries of a kotlin sequence/list? I am looking for the kotlin equivalent …

kotlin sequences
Given a BST and its root, print all sequences of nodes which give rise to the same bst

Given a BST, find all sequences of nodes starting from root that will essentially give the same binary search tree. …

permutation binary-search-tree sequences
A SQL Server function to generate of sequential numbers

I would like to have a SQL Server function dbo.GetNextNumber(), which would generate sequential numbers for each call. As …

sql-server sqlclr sequences clr-hosting
Running BLAST queries with BioPython

I would like to BLAST several sequences Retrieve the top 100 hits or so from each query Pool the downloaded sequences …

bioinformatics biopython sequences blast