Skip to content
Snippets Groups Projects
Commit 623035b0 authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

fixed group function

parent fba9e593
No related branches found
No related tags found
No related merge requests found
......@@ -84,8 +84,8 @@ object Picard {
case (_, Some(group)) => {
val groupId = header.indexOf(group)
if (groupId == -1) throw new IllegalArgumentException(group + " not existing in header of: " + file)
Some((for (c <- content) yield content(groupId).toString() -> {
header.zip(c).toMap
Some((for (c <- content) yield c(groupId).toString() -> {
header.filter(_ != group).zip(c).toMap
}).toMap)
}
case (1, _) => Some(header.zip(content.head).toMap)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment