F# keyword 'Some'

前端 未结 3 641
闹比i
闹比i 2021-02-06 21:24

F# keyword \'Some\' - what does it mean?

3条回答
  •  不要未来只要你来
    2021-02-06 22:20

    Can check out Discriminated Unions in F# for more info on DUs in general and the option type (Some, None) in particular. As a previous answer says, Some is just a union-case of the option<'a> type, which is a particularly common/useful example of an algebraic data type.

提交回复
热议问题