Skip to content

Commit

Permalink
chore(docs): update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
efcasado committed May 9, 2024
1 parent 373110d commit 070ea17
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,20 @@ to use.

### Usage

To fetch all available fixtures, one can run
Fetch all available fixtures.

```elixir
fixtures = UOF.API.Sports.fixtures
```

Given the above list of fixtures, we can easily get a quick idea of the nature
of the currently available fixtures.

For example, we can count how many fixtures are available
Given a list fixtures, count how many of them there are.

```elixir
Enum.count(fixtures)
# => 51591
```

Or inspect a random fixture
Or inspect a random fixture from the list.

```elixir
fixture = Enum.random(fixtures)
Expand Down

0 comments on commit 070ea17

Please sign in to comment.