This would be a great addition to the API provided by F # Interactive!
, , F #:
let parameters = new System.Collections.Generic.Dictionary<string, obj>()
EvalExpression , :
(fun k v -> parameters.Add(k, v))
string -> obj -> unit , , .
. - , , . F # .NET-, . , parameters ( ).
:
fsiSession.EvalInteraction
("let env = new System.Collections.Generic.Dictionary<string, obj>()")
fsiSession.EvalExpression
("System.Action<string, obj>(fun k v -> env.Add(k, v))")
source
share