mirror of
https://github.com/edwinb/Idris2-boot.git
synced 2024-11-24 12:54:28 +03:00
Use idiom brackets in Traversable (Vect k).
This commit is contained in:
parent
cab5497ce2
commit
e0e1cb9a21
@ -801,7 +801,7 @@ implementation {k : Nat} -> Monad (Vect k) where
|
||||
export
|
||||
implementation Traversable (Vect n) where
|
||||
traverse f [] = pure []
|
||||
traverse f (x :: xs) = pure (::) <*> (f x) <*> (traverse f xs)
|
||||
traverse f (x :: xs) = [| f x :: traverse f xs |]
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
-- Elem
|
||||
|
Loading…
Reference in New Issue
Block a user