hasgo
hasgo copied to clipboard
Haskell-flavoured functions for Go :smiley:
Figure out if this is something we could use: https://eleni.blog/2019/05/11/parallel-test-execution-in-go/
The transpose function transposes the rows and columns of its argument. For example, >>> transpose [[1,2,3],[4,5,6]] [[1,4],[2,5],[3,6]] If some of the rows are shorter than the following rows, their elements...
```haskell sortBy :: (a -> a -> Ordering) -> [a] -> [a]` sortBy (\(a,_) (b,_) -> compare a b) [(2, "world"), (4, "!"), (1, "Hello")] [(1,"Hello"),(2,"world"),(4,"!")] ```
Reverse of Zip()
Zip two slices. Creates a pair. (We might want to introduce a "Pair" struct?