on master help sign in
Merge pull request #3983 from melted/fix_fasta

Fix fasta benchmark

commitc57269b1fd115ace4e116dab67e2d96a62822c84 authorNiklas Larsson <metaniklas@gmail.com> dateMon 7 Aug 2017, 02:27 (9 years ago) parent7d0263a7e25ae9
2 files changed+1−4
.gitignore+1 benchmarks/fasta/fasta.idr−4
.gitignore+1
@@ -1,5 +1,6 @@
11# Build artefacts
22dist
3+dist-newstyle
34*.ibc
45*.o
56*.a
benchmarks/fasta/fasta.idr−4
@@ -38,10 +38,6 @@ replicate : Int -> Char -> String
3838replicate 0 c = ""
3939replicate n c = singleton c <+> replicate (n-1) c
4040
41−scanl : (f : acc -> a -> acc) -> acc -> List a -> List acc
42−scanl f q ls = q :: (case ls of
43− [] => []
44− x::xs => scanl f (f q x) xs)
4541
4642accum : (Char,Double) -> (Char,Double) -> (Char,Double)
4743accum (_,p) (c,q) = (c,p+q)