Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix a typo in function name
  • Loading branch information
Vasily Kirichenko Vasily Kirichenko
Vasily Kirichenko authored and Vasily Kirichenko committed Apr 12, 2016
commit 2a38ce3aee2919fe2a3e7f5c7e40d314fbd0f33a
4 changes: 2 additions & 2 deletions src/Paket.Core/Utils.fs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ let inline force (lz: 'a Lazy) = lz.Force()
let inline endsWith text x = (^a:(member EndsWith:string->bool)x, text)
let inline toLower str = (^a:(member ToLower:unit->string)str)

let memoze (f: 'a -> 'b) : 'a -> 'b =
let memoize (f: 'a -> 'b) : 'a -> 'b =
let cache = System.Collections.Concurrent.ConcurrentDictionary<'a, 'b>()
fun (x: 'a) ->
let value : 'b ref = ref Unchecked.defaultof<_>
Expand Down Expand Up @@ -143,7 +143,7 @@ let getNative (path:string) =
""

let extractPath =
memoze <| fun (infix, fileName : string) ->
memoize <| fun (infix, fileName : string) ->
let path = fileName.Replace("\\", "/").ToLower()
let path = if path.StartsWith "lib/" then "/" + path else path
let fi = FileInfo path
Expand Down