Skip to content

Commit b69faba

Browse files
committed
Clean up
1 parent e5e769a commit b69faba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/ParallelTypeCheckingTests/Code/TrieApproach/FileContentMapping.fs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@ module Continuation =
1212

1313
type Continuations = ((FileContentEntry list -> FileContentEntry list) -> FileContentEntry list) list
1414

15+
/// Option.toList >> (List.collect f)
1516
let cfo f a = lc f (Option.toList a)
17+
/// List.collect
1618
let lc = List.collect
1719

18-
let identToPath (ident: Ident) = ident.idText
19-
2020
let longIdentToPath (skipLast: bool) (longId: LongIdent) : ModuleSegment list =
2121
if skipLast then
2222
List.take (longId.Length - 1) longId
2323
else
2424
longId
25-
|> List.map identToPath
25+
|> List.map (fun ident -> ident.idText)
2626

2727
let synLongIdentToPath (skipLast: bool) (synLongIdent: SynLongIdent) =
2828
longIdentToPath skipLast synLongIdent.LongIdent

0 commit comments

Comments
 (0)