Project new values from existing value

后端 未结 1 1613
一生所求
一生所求 2021-01-27 07:07

I\'m writing my very first F# program, the aim being simply to learn F#.

What I want to is provide a list of dates, and attributes (e.g.DayOfWeek, DayOfMonth) of those d

相关标签:
1条回答
  • 2021-01-27 07:37

    For your example, the solution is simple, make the map return a tuple like so

    mydates.Get() |> List.map (fun x -> x.DayOfWeek,x.DayOfYear);;
    
    0 讨论(0)
提交回复
热议问题