前提・実現したいこと
Julia でリストの中にリストを作りたいのですが、書き方がいまいちわかりません。
教えてください。
例えば、Rでいうと以下のような処理です。
R
1> a = NULL 2> b = c("a", "b", "c") 3> c = c("d", "e", "f") 4> 5> a = append(a, list(b)) 6> a = append(a, list(c)) 7> a 8[[1]] 9[1] "a" "b" "c" 10 11[[2]] 12[1] "d" "e" "f"
試したJulliaコード
Julia
1a = nothing 2b = ("a", "b", "c") 3c = ("d", "e", "f") 4 5append!(a,b)
error
1UndefVarError: UTF8String not defined 2Stacktrace: 3 [1] top-level scope at In[94]:1
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/10/19 04:47