Giter Site home page Giter Site logo

gitter-badger / fsharpapisearch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hafuu/fsharpapisearch

0.0 1.0 0.0 68 KB

F# API search engine 名前はテキトーなので何か思いついたら変えたい。

License: MIT License

Batchfile 0.75% F# 97.57% Shell 1.68%

fsharpapisearch's Introduction

FSharpApiSearch

F# API search engine 名前はテキトーなので何か思いついたら変えたい。

使い方

コマンドラインの引数にクエリを渡して検索します。

> FSharpApiSearch.Console.exe "int -> int"

引数を省略した場合はプログラムを終了するまで何度でも検索できます。#qを入力すると終了します。

Query Specification

基本的にはF# のシグネチャと同じ形式で検索できます。

Type Name

一致する型名を検索します。

string -> int
int -> int

Type Variable

型変数により任意の型を検索します。 型変数は強力で、'aと検索した場合はジェネリック型(例: list<string>)、関数(例: (int -> int))等のすべての型にもマッチします。

クエリ中で違う型変数を使用した場合、検索対象には別の型を期待します。 'a -> 'bという検索をした場合は、int -> stringにはマッチしますが、int -> intにはマッチしません。

'a -> int
'a -> 'b -> 'b

Generic

.Net形式、ML形式のクエリでジェネリック型を検索します。ジェネリック型には型名、型変数のみ使用できます。型パラメータの記述には制限はありません。

高階型での検索もできます。

list<'a> -> 'a
'a list -> 'a list
'a<string, 'b> -> string -> 'b

Function

引数の数が同じで、引数、戻り値の型がマッチする関数を検索します。ネストした関数は括弧で表現します。

int -> int -> int
('a -> 'b) -> 'a 'c -> 'b 'c

Tuple

タプル型を検索します。ネストしたタプルは括弧で表現します。

'a * 'b -> 'a
('a * 'b) * 'c

fsharpapisearch's People

Contributors

hafuu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.