clojure-aaa6ba43.js 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. import{g as o}from"./index-fe76da25.js";function c(p,s){for(var n=0;n<s.length;n++){const e=s[n];if(typeof e!="string"&&!Array.isArray(e)){for(const t in e)if(t!=="default"&&!(t in p)){const r=Object.getOwnPropertyDescriptor(e,t);r&&Object.defineProperty(p,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}}return Object.freeze(Object.defineProperty(p,Symbol.toStringTag,{value:"Module"}))}var i={exports:{}};(function(p,s){ace.define("ace/snippets/clojure.snippets",["require","exports","module"],function(n,e,t){t.exports=`snippet comm
  2. (comment
  3. \${1}
  4. )
  5. snippet condp
  6. (condp \${1:pred} \${2:expr}
  7. \${3})
  8. snippet def
  9. (def \${1})
  10. snippet defm
  11. (defmethod \${1:multifn} "\${2:doc-string}" \${3:dispatch-val} [\${4:args}]
  12. \${5})
  13. snippet defmm
  14. (defmulti \${1:name} "\${2:doc-string}" \${3:dispatch-fn})
  15. snippet defma
  16. (defmacro \${1:name} "\${2:doc-string}" \${3:dispatch-fn})
  17. snippet defn
  18. (defn \${1:name} "\${2:doc-string}" [\${3:arg-list}]
  19. \${4})
  20. snippet defp
  21. (defprotocol \${1:name}
  22. \${2})
  23. snippet defr
  24. (defrecord \${1:name} [\${2:fields}]
  25. \${3:protocol}
  26. \${4})
  27. snippet deft
  28. (deftest \${1:name}
  29. (is (= \${2:assertion})))
  30. \${3})
  31. snippet is
  32. (is (= \${1} \${2}))
  33. snippet defty
  34. (deftype \${1:Name} [\${2:fields}]
  35. \${3:Protocol}
  36. \${4})
  37. snippet doseq
  38. (doseq [\${1:elem} \${2:coll}]
  39. \${3})
  40. snippet fn
  41. (fn [\${1:arg-list}] \${2})
  42. snippet if
  43. (if \${1:test-expr}
  44. \${2:then-expr}
  45. \${3:else-expr})
  46. snippet if-let
  47. (if-let [\${1:result} \${2:test-expr}]
  48. (\${3:then-expr} $1)
  49. (\${4:else-expr}))
  50. snippet imp
  51. (:import [\${1:package}])
  52. & {:keys [\${1:keys}] :or {\${2:defaults}}}
  53. snippet let
  54. (let [\${1:name} \${2:expr}]
  55. \${3})
  56. snippet letfn
  57. (letfn [(\${1:name) [\${2:args}]
  58. \${3})])
  59. snippet map
  60. (map \${1:func} \${2:coll})
  61. snippet mapl
  62. (map #(\${1:lambda}) \${2:coll})
  63. snippet met
  64. (\${1:name} [\${2:this} \${3:args}]
  65. \${4})
  66. snippet ns
  67. (ns \${1:name}
  68. \${2})
  69. snippet dotimes
  70. (dotimes [_ 10]
  71. (time
  72. (dotimes [_ \${1:times}]
  73. \${2})))
  74. snippet pmethod
  75. (\${1:name} [\${2:this} \${3:args}])
  76. snippet refer
  77. (:refer-clojure :exclude [\${1}])
  78. snippet require
  79. (:require [\${1:namespace} :as [\${2}]])
  80. snippet use
  81. (:use [\${1:namespace} :only [\${2}]])
  82. snippet print
  83. (println \${1})
  84. snippet reduce
  85. (reduce \${1:(fn [p n] \${3})} \${2})
  86. snippet when
  87. (when \${1:test} \${2:body})
  88. snippet when-let
  89. (when-let [\${1:result} \${2:test}]
  90. \${3:body})
  91. `}),ace.define("ace/snippets/clojure",["require","exports","module","ace/snippets/clojure.snippets"],function(n,e,t){e.snippetText=n("./clojure.snippets"),e.scope="clojure"}),function(){ace.require(["ace/snippets/clojure"],function(n){p&&(p.exports=n)})}()})(i);var $=i.exports;const a=o($),l=c({__proto__:null,default:a},[$]);export{l as c};