Does F# documentation have a way to search for functions by their types?

后端 未结 3 1056
长情又很酷
长情又很酷 2020-12-30 01:24

Say I want to know if F# has a library function of type

(\'T -> bool) -> \'T list -> int

ie, something that counts how many items

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-30 01:54

    This is the latest and greatest: http://fsdn.azurewebsites.net/

    From the docs: https://github.com/fsdn-projects/FSDN

    Supported API signatures

    API signature                     Query example
    Functions and values in modules   int -> string
    Fields of records and structs     Ref<'a> => 'a
    Methods and properties            'a list -> int or 'a list => int
    Constructors                      string -> Uri
    Names (function and method names) head : 'a list -> 'a
    Active patterns                   (||) : ... -> Expr -> ?
    

提交回复
热议问题