tracks/rust/exercises/nucleotide-count/src/lib.rs in trackler-2.2.1.179 vs tracks/rust/exercises/nucleotide-count/src/lib.rs in trackler-2.2.1.180
- old
+ new
@@ -1,14 +1,29 @@
+use std::collections::HashMap;
+pub fn count(nucleotide: char, dna: &str) -> Result<usize, char> {
+ unimplemented!(
+ "How much of nucleotide type '{}' is contained inside DNA string '{}'?",
+ nucleotide,
+ dna
+ );
+}
+
+pub fn nucleotide_counts(dna: &str) -> Result<HashMap<char, usize>, char> {
+ unimplemented!(
+ "How much of every nucleotide type is contained inside DNA string '{}'?",
+ dna
+ );
+}