Skip to content

Commit

Permalink
nubseq
Browse files Browse the repository at this point in the history
  • Loading branch information
yaxu committed Feb 26, 2013
1 parent 25216f3 commit a5aca3c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Pattern.hs
Original file line number Diff line number Diff line change
Expand Up @@ -266,3 +266,5 @@ points :: [Event a] -> [Time]
points [] = []
points (((s,d), _):es) = s:(s+d):(points es)

nubSeq :: Eq a => Sequence a -> Sequence a
nubSeq p = Sequence $ \r -> nub (range p r)

0 comments on commit a5aca3c

Please sign in to comment.