https://github.com/dawedawe/fsih
https://github.com/dawedawe/fsih
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/dawedawe/fsih
- Owner: dawedawe
- License: mit
- Created: 2023-12-24T11:09:52.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-14T20:33:21.000Z (about 2 years ago)
- Last Synced: 2024-05-02T01:07:42.680Z (about 2 years ago)
- Language: F#
- Size: 29.3 KB
- Stars: 26
- Watchers: 4
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Fsih
====
Fsih provides you with the `h` function, meant to be used in the F# REPL [fsi](https://learn.microsoft.com/en-us/dotnet/fsharp/tools/fsharp-interactive/).
It's modeled after the `h` function in the Elixir [iex](https://hexdocs.pm/iex/1.16.0/IEx.html) REPL.
To use it, just start an fsi session with `dotnet fsi`.
Load the package and open the namespace:
```fsharp
#r "nuget: Fsih";;
open Fsih;;
```
Apply h to any expression to get its documentation:
```fsharp
h fst;;
```
```
Description:
Return the first element of a tuple, fst (a,b) = a.
Parameters:
- tuple: The input tuple.
Returns:
The first value.
Examples:
fst ("first", 2) // Evaluates to "first"
Full name: Microsoft.FSharp.Core.Operators.fst
Assembly: FSharp.Core.dll
```