We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5e769a commit b69fabaCopy full SHA for b69faba
1 file changed
tests/ParallelTypeCheckingTests/Code/TrieApproach/FileContentMapping.fs
@@ -12,17 +12,17 @@ module Continuation =
12
13
type Continuations = ((FileContentEntry list -> FileContentEntry list) -> FileContentEntry list) list
14
15
+/// Option.toList >> (List.collect f)
16
let cfo f a = lc f (Option.toList a)
17
+/// List.collect
18
let lc = List.collect
19
-let identToPath (ident: Ident) = ident.idText
-
20
let longIdentToPath (skipLast: bool) (longId: LongIdent) : ModuleSegment list =
21
if skipLast then
22
List.take (longId.Length - 1) longId
23
else
24
longId
25
- |> List.map identToPath
+ |> List.map (fun ident -> ident.idText)
26
27
let synLongIdentToPath (skipLast: bool) (synLongIdent: SynLongIdent) =
28
longIdentToPath skipLast synLongIdent.LongIdent
0 commit comments