Bioinformatics/Global alignment: Difference between revisions

m
m (Reworded a comment.)
m (→‎{{header|Wren}}: Minor tidy)
 
(One intermediate revision by one other user not shown)
Line 274:
 
std::unordered_set<std::string> shortest;
shortest.insertemplace(std::reduce(list.begin(), list.end(), std::string("")));
 
uint64_t shortest_length;
Line 289:
if ( candidate.length() < shortest_length ) {
shortest.clear();
shortest.insertemplace(candidate);
shortest_length = candidate.length();
} else if ( candidate.length() == shortest_length ) {
shortest.insertemplace(candidate);
}
}
Line 1,915:
{{libheader|Wren-str}}
{{libheader|Wren-math}}
<syntaxhighlight lang="ecmascriptwren">import "./fmt" for Fmt
import "./seq" for Lst
import "./str" for Str
import "./math" for Int
 
/* Gets all permutations of a list of strings. */
9,482

edits