fez-lisp 1.5.119 → 1.5.120

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/types.js +14 -13
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "fez-lisp",
3
3
  "description": "Lisp interpreted & compiled to JavaScript",
4
4
  "author": "AT290690",
5
- "version": "1.5.119",
5
+ "version": "1.5.120",
6
6
  "type": "module",
7
7
  "main": "index.js",
8
8
  "keywords": [
package/src/types.js CHANGED
@@ -44,7 +44,8 @@ export const toTypeNames = (type) => {
44
44
  case UNKNOWN:
45
45
  return 'Unknown'
46
46
  case COLLECTION:
47
- return '[]'
47
+ return 'Array'
48
+ // return '[]'
48
49
  case ANY:
49
50
  return 'Any'
50
51
  default:
@@ -1184,18 +1185,18 @@ export const SPECIAL_FORM_TYPES = {
1184
1185
 
1185
1186
  export const formatSubType = (T) => {
1186
1187
  switch (T[0]) {
1187
- case COLLECTION:
1188
- return `[${
1189
- T[1] instanceof Set
1190
- ? [...T[1]]
1191
- .map((x) =>
1192
- x === COLLECTION
1193
- ? formatSubType([x])
1194
- : toTypeNamesAnyToUknown(x)
1195
- )
1196
- .join(' ')
1197
- : toTypeNamesAnyToUknown(ANY)
1198
- }]`
1188
+ // case COLLECTION:
1189
+ // return `[${
1190
+ // T[1] instanceof Set
1191
+ // ? [...T[1]]
1192
+ // .map((x) =>
1193
+ // x === COLLECTION
1194
+ // ? formatSubType([x])
1195
+ // : toTypeNamesAnyToUknown(x)
1196
+ // )
1197
+ // .join(' ')
1198
+ // : toTypeNamesAnyToUknown(ANY)
1199
+ // }]`
1199
1200
  case ATOM:
1200
1201
  return `${
1201
1202
  T[1] instanceof Set