{"action":"created","issue":{"url":"https://api.github.com/repos/OpenGamma/Strata/issues/587","labels_url":"https://api.github.com/repos/OpenGamma/Strata/issues/587/labels{/name}","comments_url":"https://api.github.com/repos/OpenGamma/Strata/issues/587/comments","events_url":"https://api.github.com/repos/OpenGamma/Strata/issues/587/events","html_url":"https://github.com/OpenGamma/Strata/issues/587","id":118817455,"number":587,"title":"More special cases in FunctionUtils.toScenarioResult","user":{"login":"cjkent","id":98477,"avatar_url":"https://avatars.githubusercontent.com/u/98477?v=3","gravatar_id":"","url":"https://api.github.com/users/cjkent","html_url":"https://github.com/cjkent","followers_url":"https://api.github.com/users/cjkent/followers","following_url":"https://api.github.com/users/cjkent/following{/other_user}","gists_url":"https://api.github.com/users/cjkent/gists{/gist_id}","starred_url":"https://api.github.com/users/cjkent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjkent/subscriptions","organizations_url":"https://api.github.com/users/cjkent/orgs","repos_url":"https://api.github.com/users/cjkent/repos","events_url":"https://api.github.com/users/cjkent/events{/privacy}","received_events_url":"https://api.github.com/users/cjkent/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/OpenGamma/Strata/labels/Type:Enhancement","name":"Type:Enhancement","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-25T11:33:12Z","updated_at":"2016-01-27T18:13:36Z","closed_at":null,"body":"If the results are all `CurrencyAmount` instances they can be packed into a `CurrencyValuesArray` and if they are `MultipleCurrencyAmount` instances they can be packed into the `MultipleCurrencyValuesArray` (see #586)."},"comment":{"url":"https://api.github.com/repos/OpenGamma/Strata/issues/comments/175777832","html_url":"https://github.com/OpenGamma/Strata/issues/587#issuecomment-175777832","issue_url":"https://api.github.com/repos/OpenGamma/Strata/issues/587","id":175777832,"user":{"login":"cjkent","id":98477,"avatar_url":"https://avatars.githubusercontent.com/u/98477?v=3","gravatar_id":"","url":"https://api.github.com/users/cjkent","html_url":"https://github.com/cjkent","followers_url":"https://api.github.com/users/cjkent/followers","following_url":"https://api.github.com/users/cjkent/following{/other_user}","gists_url":"https://api.github.com/users/cjkent/gists{/gist_id}","starred_url":"https://api.github.com/users/cjkent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjkent/subscriptions","organizations_url":"https://api.github.com/users/cjkent/orgs","repos_url":"https://api.github.com/users/cjkent/repos","events_url":"https://api.github.com/users/cjkent/events{/privacy}","received_events_url":"https://api.github.com/users/cjkent/received_events","type":"User","site_admin":false},"created_at":"2016-01-27T18:13:36Z","updated_at":"2016-01-27T18:13:36Z","body":"Since the changes to `CalculationFunction` the objections to this change don't seem to be relevant. The results are returned from functions in a `Map<Measure, Result<?>>` so the type information about the return value has already been discarded.\r\n\r\nWhen we add typed measures #562 the user will see the actual concrete type of `CurrencyValuesArray` or `MultiCurrencyValuesArray` when extracting the value from the results using the `Measure`."}}