diff options
author | Eduardo Julian | 2022-11-21 16:40:51 -0400 |
---|---|---|
committer | Eduardo Julian | 2022-11-21 16:40:51 -0400 |
commit | 224797231a8144f6ead1baab3b4b01a74cab629c (patch) | |
tree | 294aaadc4cc8dce8e40041aa318fa84de080002e /stdlib/source/unsafe | |
parent | df0e015145981602b3f97113bcfa586b4f6d0757 (diff) |
Added index section to documentation + re-named Primitive -> Nominal
Diffstat (limited to 'stdlib/source/unsafe')
-rw-r--r-- | stdlib/source/unsafe/lux/data/binary.lux | 6 | ||||
-rw-r--r-- | stdlib/source/unsafe/lux/data/collection/array.lux | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/stdlib/source/unsafe/lux/data/binary.lux b/stdlib/source/unsafe/lux/data/binary.lux index 83a6df975..fd68e39e0 100644 --- a/stdlib/source/unsafe/lux/data/binary.lux +++ b/stdlib/source/unsafe/lux/data/binary.lux @@ -43,11 +43,11 @@ @.python (type .public Binary - (Primitive "bytearray")) + (Nominal "bytearray")) @.scheme (these (type .public Binary - (Primitive "bytevector")) + (Nominal "bytevector")) (ffi.import (make-bytevector [Nat] Binary)) (ffi.import (bytevector-u8-ref [Binary Nat] I64)) @@ -201,7 +201,7 @@ (.as .Int <value>) (,, (.static @.jvm)) - (.as (.Primitive "java.lang.Long") <value>) + (.as (.Nominal "java.lang.Long") <value>) <value>)) <jvm_value> <jvm_value> <jvm_value> (ffi.long_to_byte <jvm_value>) diff --git a/stdlib/source/unsafe/lux/data/collection/array.lux b/stdlib/source/unsafe/lux/data/collection/array.lux index 8c1d0ce47..184be69cf 100644 --- a/stdlib/source/unsafe/lux/data/collection/array.lux +++ b/stdlib/source/unsafe/lux/data/collection/array.lux @@ -11,19 +11,19 @@ [type ["[0]" variance]]]]]) -(def .public primitive +(def .public nominal "#Array") (with_template [<item> <array>] [(.type .public <array> - {.#Primitive ..primitive {.#Item <item> {.#End}}})] + {.#Nominal ..nominal {.#Item <item> {.#End}}})] [(variance.Mutable r w) (Array' r w)] [(variance.Mutable a a) (Array a)] ) -(with_expansions [<index_type> (.Primitive "java.lang.Long") - <item_type> (.Primitive "java.lang.Object")] +(with_expansions [<index_type> (.Nominal "java.lang.Long") + <item_type> (.Nominal "java.lang.Object")] (for @.jvm (def jvm_int (template (jvm_int value) [(.|> value |