You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24-3Lines changed: 24 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
Fsih
2
2
====
3
3
4
-
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/).
4
+
Fsih provides you with the `h`and `H.H` functions, meant to be used in the F# REPL [fsi](https://learn.microsoft.com/en-us/dotnet/fsharp/tools/fsharp-interactive/).
5
5
It's modeled after the `h` function in the Elixir [iex](https://hexdocs.pm/iex/1.16.0/IEx.html) REPL.
6
6
7
7
To use it, just start an fsi session with `dotnet fsi`.
@@ -11,9 +11,30 @@ Load the package and open the namespace:
11
11
open Fsih;;
12
12
```
13
13
14
-
Apply h to any function wrapped in an FSharp [quotation](https://learn.microsoft.com/en-us/dotnet/fsharp/language-reference/code-quotations) to get its documentation:
14
+
Apply h to any expression wrapped in an FSharp [quotation](https://learn.microsoft.com/en-us/dotnet/fsharp/language-reference/code-quotations) to get its documentation:
15
15
```fsharp
16
-
h <@ fst @>
16
+
h <@ fst @>;;
17
+
```
18
+
19
+
```
20
+
Description:
21
+
Return the first element of a tuple, fst (a,b) = a.
22
+
23
+
Parameters:
24
+
- tuple: The input tuple.
25
+
Returns:
26
+
The first value.
27
+
28
+
Examples:
29
+
fst ("first", 2) // Evaluates to "first"
30
+
31
+
Full name: Microsoft.FSharp.Core.Operators.fst
32
+
Assembly: FSharp.Core.dll
33
+
```
34
+
35
+
Or apply H.H to any expression directly to get its documentation:
0 commit comments