我有一个C#类返回一个列表,使用System.Collections.Generic列表不是F#名单System.Collections.Generic列表和F#
我想重复好像列表中找到对象或无法找到它。这是我如何在C#中完成的。
#light
open System.Collections.Generic
let genList = new List<int>()
genList.Add(1)
genList.Add(2)
genList.Add(3)
for x in genList do
printf "%d" x
我是新来的F#。什么是#light(您的示例中的第一行)? – octopusgrabbus 2016-07-25 18:32:54