Я пишу функцию, возвращающую список минус третье значение. Вот мой текущий код:Удалить третий элемент в списке F #
let listString = [ "1"; "2"; "3"; "4" ];;
let del3 (listA :'a) = [listA.Head; listA.Tail.Head] @ [listA.Tail.Tail.Tail];;
del3 listString
и я получаю сообщение об ошибке:
Lookup on object of indeterminate type based on information prior to this program point. A type annotation may be needed prior to this program point to constrain the type of the object. This may allow the lookup to be resolved.
Что я должен изменить, чтобы исправить ошибку?
Старайтесь избегать '' .Head' и .Tail'. –