summary refs log tree commit diff stats
path: root/raku/nucleotide-count/NucleotideCount.rakumod
blob: 03bae38c431026e08ac9f32e3a7774de341b6e36 (plain) (blame)
1
2
3
4
5
6
unit module NucleotideCount;

subset DNA of Str where * !~~ /<-[ACGT]>/;
sub nucleotide-count (DNA $strand) is export {
    $strand.comb.Bag;
}