Craig Oates
6 years ago
2 changed files with 28 additions and 5 deletions
@ -1 +1,14 @@
|
||||
module internal DataStructuring |
||||
module internal DataStructuring |
||||
|
||||
open DataProcessing |
||||
|
||||
let UpdateMap (map:Map<_,_>) key value = |
||||
if map.ContainsKey key then |
||||
let exisitingValue = map.[key] |
||||
let map = map |> Map.remove key |
||||
map |> Map.add key (value :: exisitingValue) |
||||
else |
||||
map.Add (key, [value]) |
||||
|
||||
let InitialiseMap map text = |
||||
BisectWords text ||> UpdateMap map |
Loading…
Reference in new issue