0
我從F#的背景來了,我想「缺點」的項目上像這樣的列表...不能「缺點」的榆樹名單
直接在REPL .. 。
model = {things = []}
morethings = model.things :: "anything"
但是編譯器說這個..
(::) is expecting the right side to be a:
List (List String)
But the right side is:
String
這是這樣一個簡單的事情,我一定是失去了一些東西根本。爲什麼我不能將新字符串添加到該字符串列表中?
現在好了,我覺得很傻:-) – Stimul8d