Hydrospheredata / mist

Serverless proxy for Spark cluster
http://hydrosphere.io/mist/
Apache License 2.0
326 stars 68 forks source link

mist-library - arguments combination over tuples instead of HList #439

Closed dos65 closed 6 years ago

dos65 commented 6 years ago

Currently it's so convienient to perfom map over combined ArgDef, because its type parameter is hlist

val args: ArgDef[Int :: String: HNil] = arg[Int]("a") :: arg[String]("b")
// now
args.map(hlist => //do something with hlist.head and hlist.head.head)
// should be
args.map({case (a, b) => // use plain int and string arguments)