DylanMeeus / DylanMeeus/hasgo

SortBy()

Open
#32 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
144
Forks
11
PR merge metrics
No merged PRs in 30d

Description

```haskell
sortBy :: (a -> a -> Ordering) -> [a] -> [a]`

sortBy (\(a,_) (b,_) -> compare a b) [(2, "world"), (4, "!"), (1, "Hello")]
[(1,"Hello"),(2,"world"),(4,"!")]
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.