According to MSDN doc you should use:
List.nth ["a";"b";"c"] 1
But indeed it's return null instead of b
Also, this construction is deprecated according to compiler warning.
This construct is deprecated. please use List.item
So you should used something like:
["a";"b";"c"]
|> List.item 1
@alfonsogarciacaro Should Fable support List.nth even if deprecated ?
The method is deprecated, it doesn't appear in the autocompletion and the signature is confusing (the list is the first argument unlike most of the other List functions) so I too recommend using List.item instead as @MangelMaxime suggests :+1:
Ok, could something be added to the fable output to tell users that List.item should be used?
There should be already the warning from the F# compiler.

Apologies, I must have misted that.
Most helpful comment
Apologies, I must have misted that.