smullyan 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/smullyan/birds/identity.rb +10 -2
- data/lib/smullyan/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3910bf99fff9838c5d4b545b1eea51db6a3b600bca46c2e885f8a7206d73534e
|
|
4
|
+
data.tar.gz: 891d205739931071eaa7d1513f2204dc118d908cd79b98454a08784566ad4ce0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 13ad3e2f46cc333691da7eb378e4610e66a4943b737192dfcc01f48572eb7e30ebde2db894a3275e35cd3c555a4be766f7ba001bed5be9b9ff519f4b02535806
|
|
7
|
+
data.tar.gz: 5b2fd590747a7a1cb9d295804560e01446f2d684edaacf00510500e24da3bafcc8b63864abb249424d79dd46aaf8d3712b81ef73ef6b5326f04e5cdb8cbe53e7
|
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
+
require_relative 'starling'
|
|
4
|
+
require_relative 'kestrel'
|
|
5
|
+
|
|
3
6
|
module Smullyan
|
|
4
7
|
module Birds
|
|
5
8
|
# The Identity bird - returns its argument unchanged
|
|
6
9
|
# Identity x = x
|
|
7
|
-
|
|
10
|
+
|
|
11
|
+
# I is SKK
|
|
12
|
+
I_derived = S.(K).(K)
|
|
13
|
+
|
|
14
|
+
I_direct = ->(x) { x }
|
|
8
15
|
|
|
9
16
|
# Traditional combinator names
|
|
10
|
-
|
|
17
|
+
Identity = I_derived # I combinator
|
|
18
|
+
I = Identity
|
|
11
19
|
Idiot = Identity # Alternative name from Smullyan's book
|
|
12
20
|
end
|
|
13
21
|
end
|
data/lib/smullyan/version.rb
CHANGED