Skip to content

Commit 338db2d

Browse files
committed
add and run fantomas Run fsprojects/fantomas source code formatter #17
1 parent bedbba6 commit 338db2d

File tree

7 files changed

+279
-186
lines changed

7 files changed

+279
-186
lines changed

.config/dotnet-tools.json

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"version": 1,
3+
"isRoot": true,
4+
"tools": {
5+
"fantomas-tool": {
6+
"version": "4.6.1",
7+
"commands": [
8+
"fantomas"
9+
]
10+
}
11+
}
12+
}

SharpLogic/BasicAlgorithms.fs

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
module BasicAlgorithms =
44

5-
let rec cartList nll =
6-
let f0 n nll =
5+
let rec cartList nll =
6+
let f0 n nll =
77
match nll with
8-
| [] -> [[n]]
9-
| _ -> List.map (fun nl->n::nl) nll
10-
8+
| [] -> [ [ n ] ]
9+
| _ -> List.map (fun nl -> n :: nl) nll
10+
1111
match nll with
1212
| [] -> []
13-
| h::t -> List.collect (fun n->f0 n (cartList t)) h
13+
| h :: t -> List.collect (fun n -> f0 n (cartList t)) h

0 commit comments

Comments
 (0)