I am somewhat new to functional programming. To improve the performance of a package, I would like to re-write a package in a functional style.
I have the following Dataset:
testPoints = Dataset[{ <|"id"->1, "x"->3.75, "y"->3.75, "z"->1.5 |>,
<|"id"->2, "x"->-3.75, "y"->3.75, "z"->1.5 |>,
<|"id"->3, "x"->-0.95, "y"->-0.95, "z"->1.5 |>,
<|"id"->4, "x"->0.95, "y"->-0.95, "z"->1.5 |>,
<|"id"->5, "x"->0.95, "y"->0.95, "z"->1.17 |>,
<|"id"->6, "x"->-0.95, "y"->0.95, "z"->1.17 |>,
<|"id"->7, "x"->-2.84, "y"->-2.84, "z"->1.17 |>,
<|"id"->8, "x"->2.84, "y"->-2.84, "z"->1.17 |>,
<|"id"->9, "x"->4.01, "y"->0, "z"->0.83 |>,
<|"id"->10, "x"->0, "y"->4.01, "z"->0.83 |>,
<|"id"->11, "x"->-2.67, "y"->0, "z"->0.83 |>,
<|"id"->12, "x"->0, "y"->-2.67, "z"->0.83 |>,
<|"id"->13, "x"->1.89, "y"->1.89, "z"->0.5 |>,
<|"id"->14, "x"->-1.89, "y"->1.89, "z"->0.5 |>,
<|"id"->15, "x"->-3.75, "y"->-3.75, "z"->0.5 |>,
<|"id"->16, "x"->3.75, "y"->-3.75, "z"->0.5 |>}];
I am unclear on how I would specify specific columns in a Dataset in a Map or Apply function.
How would I apply f[x], g[x,y] or h[x,y,z] to the rows in this Dataset?

Keys::invrl: The argument Keys[Association[TypeSystem
Struct[{id,TypeSystemAtom[String],y,z},{TypeSystemAtom[Integer],TypeSystemAtom[Real],TypeSystemAtom[Real],TypeSystemAtom[Real]}],x2->TypeSystem`Atom[Real]^2]] is not a valid Association or a list of rules. >>I am using Mathematica 10.0.2. Are you using the same version?
– Doug Kimzey Apr 28 '15 at 21:43<|#|> &[<|"u" -> x, "v" -> y|>]or this here<|"u" -> x, <|"z" -> 1|>|>? If you cannot get this working, can you please poste a complete example that gives the error to e.g. http://hastebin.com/ and give the link here? Or you ask in the [chat]. – halirutan Apr 28 '15 at 23:48testPoints[All, Append[#, "x2" -> #x^2] &]– Gordon Coale Apr 29 '15 at 08:35testPoints[All, {"id" -> e, "x" -> f, "y" -> g, "z" -> h}]will work on 10.0.2 also its worth restarting your kernel when playing with dataset, occasionally it seems flaky and gives errors that a restart fixes. – Gordon Coale Apr 29 '15 at 08:48