1
1
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:
Rob Rix 2015-12-23 23:28:13 -05:00
parent ad6e7f2ae7
commit 8a2aca45e1

View File

@ -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