block_array.json 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  1. [
  2. {
  3. "name": "array.length",
  4. "contents": [
  5. "数组",
  6. {"type": "inputMortise","default": "","tenonTypes": []},
  7. "的长度"
  8. ],
  9. "class": "array.Length", "extend": "$Expression"
  10. },
  11. {
  12. "name": "array.concat",
  13. "contents": [
  14. "合并多个数组",
  15. {"type": "inputMortise","default": "","tenonTypes": []},
  16. {"type": "inputMortise","default": "","tenonTypes": []}
  17. ],
  18. "class": "array.oncat", "extend": "$Expression"
  19. },
  20. {
  21. "name": "array.join",
  22. "contents": [
  23. "合并数组",
  24. {"type": "inputMortise","default": "","tenonTypes": []},
  25. "为字符串"
  26. ],
  27. "class": "array.Join", "extend": "$Expression"
  28. },
  29. {
  30. "name": "array.push",
  31. "contents": [
  32. "在数组",
  33. {"type": "inputMortise","default": "","tenonTypes": []},
  34. "的末尾添加元素",
  35. {"type": "inputMortise","default": "","tenonTypes": []}
  36. ],
  37. "class": "array.Push", "extend": "$Operation"
  38. },
  39. {
  40. "name": "array.pop",
  41. "contents": [
  42. "从数组",
  43. {"type": "inputMortise","default": "","tenonTypes": []},
  44. "中返回并移除最后一个元素"
  45. ],
  46. "class": "array.Pop", "extend": "$Expression"
  47. },
  48. {
  49. "name": "array.unshift",
  50. "contents": [
  51. "在数组",
  52. {"type": "inputMortise","default": "","tenonTypes": []},
  53. "的开头添加元素",
  54. {"type": "inputMortise","default": "","tenonTypes": []}
  55. ],
  56. "class": "array.Unshift", "extend": "$Operation"
  57. },
  58. {
  59. "name": "array.shift",
  60. "contents": [
  61. "从数组",
  62. {"type": "inputMortise","default": "","tenonTypes": []},
  63. "中返回并移除第一个元素"
  64. ],
  65. "class": "array.Shift", "extend": "$Expression"
  66. },
  67. {
  68. "name": "array.slice",
  69. "contents": [
  70. "截取数组",
  71. {"type": "inputMortise","default": "","tenonTypes": []},
  72. "从位置",
  73. {"type": "inputMortise","default": "","tenonTypes": []},
  74. "到位置",
  75. {"type": "inputMortise","default": "","tenonTypes": []}
  76. ],
  77. "class": "array.Slice", "extend": "$Expression"
  78. },
  79. {
  80. "name": "array.splice",
  81. "contents": [
  82. "数组",
  83. {"type": "inputMortise","default": "","tenonTypes": []},
  84. "从位置",
  85. {"type": "inputMortise","default": "","tenonTypes": []},
  86. "删除",
  87. {"type": "inputMortise","default": "","tenonTypes": []},
  88. "个元素,添加新元素",
  89. {"type": "inputMortise","default": "","tenonTypes": []}
  90. ],
  91. "class": "array.Splice", "extend": "$Expression"
  92. },
  93. {
  94. "name": "array.reverse",
  95. "contents": [
  96. "将数组",
  97. {"type": "inputMortise","default": "","tenonTypes": []},
  98. "颠倒位置"
  99. ],
  100. "class": "array.Reverse", "extend": "$Operation"
  101. },
  102. {
  103. "name": "array.sort",
  104. "contents": [
  105. "对数组",
  106. {"type": "inputMortise","default": "","tenonTypes": []},
  107. "排序, 元素1",
  108. {"type": "input","default": "a"},
  109. "元素2",
  110. {"type": "input","default": "b"},
  111. ",绑定对象",
  112. {"type": "mortise", "tenonTypes": []}
  113. ],
  114. "class": "array.Sort", "extend": "$Around"
  115. },
  116. {
  117. "name": "array.indexOf",
  118. "contents": [
  119. "数组",
  120. {"type": "inputMortise","default": "","tenonTypes": []},
  121. "中元素",
  122. {"type": "inputMortise","default": "","tenonTypes": []},
  123. "的索引"
  124. ],
  125. "class": "array.IndexOf", "extend": "$Expression"
  126. },
  127. {
  128. "name": "array.lastIndexOf",
  129. "contents": [
  130. "数组",
  131. {"type": "inputMortise","default": "","tenonTypes": []},
  132. "中元素",
  133. {"type": "inputMortise","default": "","tenonTypes": []},
  134. "的最后索引"
  135. ],
  136. "class": "array.LastIndexOf", "extend": "$Expression"
  137. },
  138. {
  139. "name": "array.forEach",
  140. "contents": [
  141. "遍历数组",
  142. {"type": "inputMortise","default": "","tenonTypes": []},
  143. "值",
  144. {"type": "input","default": "v"},
  145. "索引",
  146. {"type": "input","default": "i"},
  147. "绑定对象",
  148. {"type": "mortise","default": "","tenonTypes": []}
  149. ],
  150. "class": "array.ForEach", "extend": "$Around"
  151. },
  152. {
  153. "name": "array.map",
  154. "contents": [
  155. "map",
  156. {"type": "inputMortise","default": "","tenonTypes": []},
  157. "方法",
  158. {"type": "inputMortise","default": "","tenonTypes": []},
  159. ",绑定对象",
  160. {"type": "mortise", "tenonTypes": []}
  161. ],
  162. "class": "array.Map", "extend": "$Expression"
  163. },
  164. {
  165. "name": "array.filter",
  166. "contents": [
  167. "过滤数组",
  168. {"type": "inputMortise","default": "","tenonTypes": []},
  169. "方法",
  170. {"type": "inputMortise","default": "","tenonTypes": []},
  171. ",绑定对象",
  172. {"type": "mortise", "tenonTypes": []}
  173. ],
  174. "class": "array.Filter", "extend": "$Expression"
  175. },
  176. {
  177. "name": "array.every",
  178. "contents": [
  179. "数组",
  180. {"type": "inputMortise","default": "","tenonTypes": []},
  181. "的每个元素都满足方法",
  182. {"type": "inputMortise","default": "","tenonTypes": []},
  183. ",绑定对象",
  184. {"type": "mortise", "tenonTypes": []}
  185. ],
  186. "class": "array.Every", "extend": "$Expression"
  187. },
  188. {
  189. "name": "array.some",
  190. "contents": [
  191. "数组",
  192. {"type": "inputMortise","default": "","tenonTypes": []},
  193. "的一些元素满足方法",
  194. {"type": "inputMortise","default": "","tenonTypes": []},
  195. ",绑定对象",
  196. {"type": "mortise", "tenonTypes": []}
  197. ],
  198. "class": "array.Some", "extend": "$Expression"
  199. },
  200. {
  201. "name": "array.reduce",
  202. "contents": [
  203. "数组",
  204. {"type": "inputMortise","default": "","tenonTypes": []},
  205. "reduce",
  206. {"type": "inputMortise","default": "","tenonTypes": []},
  207. {"type": "inputMortise","default": "","tenonTypes": []},
  208. ",绑定对象",
  209. {"type": "mortise", "tenonTypes": []}
  210. ],
  211. "class": "array.Reduce", "extend": "$Expression"
  212. },
  213. {
  214. "name": "array.reduceRight",
  215. "contents": [
  216. "数组",
  217. {"type": "inputMortise","default": "","tenonTypes": []},
  218. "reduceRight",
  219. {"type": "inputMortise","default": "","tenonTypes": []},
  220. {"type": "inputMortise","default": "","tenonTypes": []},
  221. ",绑定对象",
  222. {"type": "mortise", "tenonTypes": []}
  223. ],
  224. "class": "array.ReduceRight", "extend": "$Expression"
  225. },
  226. {
  227. "name": "array.contains",
  228. "contents": [
  229. "数组",
  230. {"type": "inputMortise","default": "","tenonTypes": []},
  231. "包含",
  232. {"type": "inputMortise","default": "","tenonTypes": []}
  233. ],
  234. "class": "array.Contains", "extend": "$Expression"
  235. },
  236. {
  237. "name": "array.append",
  238. "contents": [
  239. "数组",
  240. {"type": "inputMortise","default": "","tenonTypes": []},
  241. "末尾添加数组",
  242. {"type": "inputMortise","default": "","tenonTypes": []}
  243. ],
  244. "class": "array.Append", "extend": "$Expression"
  245. },
  246. {
  247. "name": "array.getLast",
  248. "contents": [
  249. "数组",
  250. {"type": "inputMortise","default": "","tenonTypes": []},
  251. "的最后一个元素"
  252. ],
  253. "class": "array.GetLast", "extend": "$Expression"
  254. },
  255. {
  256. "name": "array.getRandom",
  257. "contents": [
  258. "随机获取数组",
  259. {"type": "inputMortise","default": "","tenonTypes": []},
  260. "中的一个元素"
  261. ],
  262. "class": "array.GetRandom", "extend": "$Expression"
  263. },
  264. {
  265. "name": "array.erase",
  266. "contents": [
  267. "从数组",
  268. {"type": "inputMortise","default": "","tenonTypes": []},
  269. "中的删除元素",
  270. {"type": "inputMortise","default": "","tenonTypes": []}
  271. ],
  272. "class": "array.Erase", "extend": "$Expression"
  273. },
  274. {
  275. "name": "array.empty",
  276. "contents": [
  277. "清空数组",
  278. {"type": "inputMortise","default": "","tenonTypes": []}
  279. ],
  280. "class": "array.Empty", "extend": "$Expression"
  281. },
  282. {
  283. "name": "array.combine",
  284. "contents": [
  285. "合并数组",
  286. {"type": "inputMortise","default": "","tenonTypes": []},
  287. "和",
  288. {"type": "inputMortise","default": "","tenonTypes": []},
  289. "并去重"
  290. ],
  291. "class": "array.Combine", "extend": "$Expression"
  292. }
  293. ]