mirror of
https://github.com/github/semantic.git
synced 2024-11-29 02:44:36 +03:00
Tacit definition of null
.
This commit is contained in:
parent
ad6e7f2ae7
commit
8a2aca45e1
@ -22,7 +22,7 @@ at :: Source a -> Int -> a
|
||||
at = (!!) . toList
|
||||
|
||||
null :: Source a -> Bool
|
||||
null (Source vector) = Vector.null vector
|
||||
null = Vector.null . getVector
|
||||
|
||||
cons :: a -> Source a -> Source a
|
||||
cons a = Source . Vector.cons a . getVector
|
||||
|
Loading…
Reference in New Issue
Block a user