@@ -47,7 +47,7 @@ In your `rebar.config` file, update your `deps` section to include
47
47
48
48
``` erlang
49
49
{deps , [
50
- {lutil ," 0.14 .0" }}}
50
+ {lutil ," 0.15 .0" }}}
51
51
]}
52
52
```
53
53
@@ -57,6 +57,8 @@ In your `rebar.config` file, update your `deps` section to include
57
57
58
58
For the modules, usage is the same as any other Erlang or LFE library :-)
59
59
60
+ Some example usage:
61
+
60
62
``` cl
61
63
> (lutil-math:dot-product '(1 2 3) '(4 5 6))
62
64
32
@@ -66,14 +68,20 @@ For the modules, usage is the same as any other Erlang or LFE library :-)
66
68
> (lutil-tuple:cat (list (tuple 1 2) (tuple 3 4) (tuple 5 6)))
67
69
#(1 2 3 4 5 6)
68
70
69
- > (lutil:uuid4 (tuple 'type "list"))
70
- "f790b655-f139-46d5-08e5-faf132bdd62a"
71
- > (lutil:uuid4 (tuple 'type "atom"))
72
- 8ecd6cc2-8580-4ab6-3fc1-8135ed9bb28c
73
- > (lutil:uuid4 (tuple 'type "binary"))
74
- #B(51 49 53 56 102 52 53 54 45 50 51 55 56 45 52 51 56 54 45 50 57 56 ...)
75
- > (lutil:uuid4)
76
- #B(99 101 102 102 54 53 97 50 45 48 57 55 49 45 52 50 49 49 45 50 52 ...)
71
+ lfe> (lutil-list:chunks (lists:seq 1 32) 8 #(by-parts))
72
+ ((1 2 3 4)
73
+ (5 6 7 8)
74
+ (9 10 11 12)
75
+ (13 14 15 16)
76
+ (17 18 19 20)
77
+ (21 22 23 24)
78
+ (25 26 27 28)
79
+ (29 30 31 32))
80
+ lfe> (lutil-list:chunks (lists:seq 1 32) 8 #(by-length))
81
+ ((1 2 3 4 5 6 7 8)
82
+ (9 10 11 12 13 14 15 16)
83
+ (17 18 19 20 21 22 23 24)
84
+ (25 26 27 28 29 30 31 32))
77
85
```
78
86
79
87
###Macros[ ↟ ; ] ( #contents )
@@ -90,7 +98,7 @@ added to the [LFE stdlib][clj docs]!
90
98
BSD 3-Clause License
91
99
92
100
```
93
- Copyright © 2013-2023 , Duncan McGreggor <oubiwann@gmail.com>
101
+ Copyright © 2013-2024 , Duncan McGreggor <oubiwann@gmail.com>
94
102
Copyright © 2016, Eric Bailey <eric@ericb.me>
95
103
Copyright © 2015, arpunk <arpunk@cryptolab.net>
96
104
osense <krupicka.adam@gmail.com>