Skip to content

Commit

Permalink
Updated README and CI/CD.
Browse files Browse the repository at this point in the history
  • Loading branch information
oubiwann committed Sep 19, 2024
1 parent ff78341 commit 18c2c16
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 14 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:

strategy:
matrix:
otp_version: ['24.3', '25.3', '26.0']
otp_version: ['26', '25', '24']

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp_version }}
Expand Down Expand Up @@ -54,10 +54,10 @@ jobs:
# * https://github.com/lfe/rebar3/issues/82
# * https://github.com/erlang/rebar3/issues/2817
#otp_version: ['20.3', '21.3', '22.3', '23.3']
otp_version: ['21.3', '22.3', '23.3']
otp_version: ['23', '22', '21']

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp_version }}
Expand Down
28 changes: 18 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ In your `rebar.config` file, update your `deps` section to include

```erlang
{deps, [
{lutil, "0.14.0"}}}
{lutil, "0.15.0"}}}
]}
```

Expand All @@ -57,6 +57,8 @@ In your `rebar.config` file, update your `deps` section to include

For the modules, usage is the same as any other Erlang or LFE library :-)

Some example usage:

```cl
> (lutil-math:dot-product '(1 2 3) '(4 5 6))
32
Expand All @@ -66,14 +68,20 @@ For the modules, usage is the same as any other Erlang or LFE library :-)
> (lutil-tuple:cat (list (tuple 1 2) (tuple 3 4) (tuple 5 6)))
#(1 2 3 4 5 6)
> (lutil:uuid4 (tuple 'type "list"))
"f790b655-f139-46d5-08e5-faf132bdd62a"
> (lutil:uuid4 (tuple 'type "atom"))
8ecd6cc2-8580-4ab6-3fc1-8135ed9bb28c
> (lutil:uuid4 (tuple 'type "binary"))
#B(51 49 53 56 102 52 53 54 45 50 51 55 56 45 52 51 56 54 45 50 57 56 ...)
> (lutil:uuid4)
#B(99 101 102 102 54 53 97 50 45 48 57 55 49 45 52 50 49 49 45 50 52 ...)
lfe> (lutil-list:chunks (lists:seq 1 32) 8 #(by-parts))
((1 2 3 4)
(5 6 7 8)
(9 10 11 12)
(13 14 15 16)
(17 18 19 20)
(21 22 23 24)
(25 26 27 28)
(29 30 31 32))
lfe> (lutil-list:chunks (lists:seq 1 32) 8 #(by-length))
((1 2 3 4 5 6 7 8)
(9 10 11 12 13 14 15 16)
(17 18 19 20 21 22 23 24)
(25 26 27 28 29 30 31 32))
```

### Macros [↟](#contents)
Expand All @@ -90,7 +98,7 @@ added to the [LFE stdlib][clj docs]!
BSD 3-Clause License

```
Copyright © 2013-2023, Duncan McGreggor <[email protected]>
Copyright © 2013-2024, Duncan McGreggor <[email protected]>
Copyright © 2016, Eric Bailey <[email protected]>
Copyright © 2015, arpunk <[email protected]>
osense <[email protected]>
Expand Down

0 comments on commit 18c2c16

Please sign in to comment.