【Lisp】プログラミング言語 Clojure #4【JVM】 [無断転載禁止]©2ch.net (89レス)
前次1-
抽出解除 必死チェッカー(本家) (べ) 自ID レス栞 あぼーん

69
(1): 2021/05/11(火)00:27 ID:5VzwiW7v(1/3) AAS
>>68
丁度 Clojure 三日目になりました

(ns example.trumps.card)
(def spades 4)
(def hearts 3)
(def diamonds 2)
(def clubs 1)
;(def suit '(spades hearts diamonds clubs))
(def suit (conj '() clubs diamonds hearts spades))

って直したらイケました
省14
70: 2021/05/11(火)00:56 ID:5VzwiW7v(2/3) AAS
>>69
んで、こうなりました…

(ns example.trumps.card)
(def spades 4)
(def hearts 3)
(def diamonds 2)
(def clubs 1)
;(def suit '(spades hearts diamonds clubs))
;(def suit (conj '() clubs diamonds hearts spades))
(def suit [spades hearts diamonds clubs])
省17
72: 2021/05/11(火)20:06 ID:5VzwiW7v(3/3) AAS
>>71
アドバイスありがとうございます!
普通に list 関数でリストを作ればよかっただけだったんですね…
前次1-
スレ情報 赤レス抽出 画像レス抽出 歴の未読スレ AAサムネイル

ぬこの手 ぬこTOP 0.005s