Skip to content

Commit faff820

Browse files
committed
🚌 add select() to README
1 parent e8216f5 commit faff820

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed

README.md

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,30 @@ Boolean data type has two possible truth values to represent logic.<br>
99
```elm
1010
import Boolean exposing (..)
1111

12-
parse "inactive"
13-
-- False
14-
15-
parse "not off"
16-
-- True
17-
12+
parse "1"
1813
parse "truthy"
14+
parse "not off"
1915
-- True
2016

21-
xor3 True True True
22-
-- True
17+
parse "not true"
18+
parse "inactive"
19+
parse "disabled"
20+
-- False
2321

2422
imply True False
2523
-- False
2624

2725
eq False False
2826
-- True
2927

28+
xor3 True True True
29+
-- True
30+
31+
select3 1 True False True
32+
-- False ^
33+
3034
count3 True True False
31-
-- 2
35+
-- 2 ^ ^
3236
```
3337

3438
<br>
@@ -50,6 +54,7 @@ count3 True True False
5054
| [eq] | Check if antecedent ⇔ consequent. |
5155
| [imply] | Check if antecedent ⇒ consequent. |
5256
| [nimply] | Check if antecedent ⇏ consequent. |
57+
| [select] | Check if ith value is true. |
5358
| [count] | Count no. of true values. |
5459

5560
[parse]: https://github.com/elmw/extra-boolean/wiki/parse
@@ -63,6 +68,7 @@ count3 True True False
6368
[eq]: https://github.com/elmw/extra-boolean/wiki/eq
6469
[imply]: https://github.com/elmw/extra-boolean/wiki/imply
6570
[nimply]: https://github.com/elmw/extra-boolean/wiki/nimply
71+
[select]: https://github.com/elmw/extra-boolean/wiki/select
6672
[count]: https://github.com/elmw/extra-boolean/wiki/count
6773

6874
<br>

elm.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "elmw/extra-boolean",
44
"summary": "Boolean data type has two possible truth values to represent logic.",
55
"license": "MIT",
6-
"version": "1.2.0",
6+
"version": "1.2.1",
77
"exposed-modules": [
88
"Boolean"
99
],

0 commit comments

Comments
 (0)