Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
I tried to run your solution without
{-# LANGUAGE ImportQualifiedPost #-}
and tests passed. You also need to changeimport Data.Traversable qualified as T
toimport qualified Data.Traversable as T
Try to add
{-# LANGUAGE Haskell2010 #-}
and fix compilation errors. It seems the issue is because of lib used to validate imports. It fails if code is not a valid Haskell2010.This comment is hidden because it contains spoiler information about the solution
When you have only 1 function, the use of the pipe macro is not recommended.
https://elixir-lang.org/getting-started/comprehensions.html#generators-and-filters
Wow I'm impressed. I'm just wonder how the hell this works mathematically?