clojure

    0

    2답변

    두 개의 끝점을 쓰고 있는데 스케쥴러를 관리하고 있는데 그 중 하나는 quartzite입니다. 일정에 따라 스케줄러 인스턴스를 표시하고 싶습니다. 일정을 조정하고 스케줄을 취소하면 가장 쉬운 방법은 원자를 만드는 것이지만 코드를 냄새 맡지 않는 것이 가장 좋은 방법은 아닌 것 같습니다. 클로저에 상태를 처리하는 관용적 인 방법이 있는지 알고 싶습니다.

    1

    2답변

    기능을 println에 시도하고 있습니다. 나는이 (println "T2 transfer") (Thread/sleep 5000) 같이 할 경우 (ns com.lapots.functional.clojure.transact (:gen-class)) (defn transfer [from to amount] (alter (.b

    0

    1답변

    Clojure/Cider에서 이상한 동작이 발견되었습니다. 동일한 식을 두 가지 방법으로 실행하려고하면 (REPL에서 테스트를 실행하고 실행) 다른 결과가 나타납니다. (with-chrome {} driver (start) (doto driver (go "http://localhost:3000") (wait-visib

    1

    1답변

    에 대한 사용자 정의 인쇄 방법을 추가, 나는 보통 인쇄 방법 추가 (defrecord Op [type value] Object (toString [op] (str [type value]))) (defmethod print-method Op [v w] (.write w (str v))) 을하지만 난 clo

    1

    2답변

    나는 lighttable과 clojure를 배우고있다. 하지만 난 clojure 스크립트를 평가하려고 할 때 허가가 거부되었다고하는 문제가 있습니다. 다음은 오류 We couldn't connect. Looks like there was an issue trying to connect to the project. Here's what we got: f

    0

    2답변

    저는 총 비용을 얻기 위해 재귀 함수를 작성했습니다. costOfPath는 ubergraph를 호출하여 각 여행의 비용을 계산하기 만하면이 함수가 추가하여 표시합니다. 정확한 비용에서 (def task8 [(Parcel. :main-office :r131 "Plastic Wallets" "Delivery" 1) (Parcel. :r131 :r1

    0

    2답변

    약간의 재귀 함수를 작성했지만 let 블록에 재귀 비트를 포함하면 unsuborted 바인딩 오류가 발생합니다. 코드 : (defn total-weight [parcel cost] "Calculate the total route cost" (if (not(empty? parcel)) (let [ first-parcel (first par

    1

    2답변

    의 유형을 예쁜-인쇄이지도 꽤 추한 나오는 : 대부분의 시간 {:type :move, :name :boost, :from {:nodeid :plus, :name :left-operand, :value {:args [:result :right-operand], :f #object[farg

    -1

    1답변

    현재 경로 계획 로봇에서 작업하고 있으며 잘못된 인수를 전달하여 오류가 발생합니다. (defn multipleparcels [parcel] (let [newparcel (first parcel) start (:start newparcel) end (:end newparcel) delivery (:delivery newpa

    1

    1답변

    다음과 같이 클로저 스키마 입력을 문자열로 확인할 수 있습니다. 이메일은 소문자로 그것을 강요/변환합니다 email : - s/Email 처럼 사용할 수 있도록 name :- s/Str, place :- s/Str, 은 어떻게 defschema을 작성할 수 있습니다.