olabusayoT commented on code in PR #1433:
URL: https://github.com/apache/daffodil/pull/1433#discussion_r1956645222
##########
daffodil-core/src/main/scala/org/apache/daffodil/core/dsom/ElementBase.scala:
##########
@@ -256,15 +256,16 @@ trait ElementBase
// Creates a Map[prefix, Set[NS]]. Duplicate NS's will be removed from
the
// Set, since it's a Set
- val bindingsGroupedByPrefix = allBindings.groupBy { _._1 }.mapValues {
_.map { _._2 } }
+ val bindingsGroupedByPrefix =
Review Comment:
view.mapValues.toMap didn't work because it breaks 2.12 with the below
error. .map(...k -> vMapped) seems like the best alternative
value mapValues is not a member of scala.collection.IterableView[(String,
scala.collection.immutable.Set[(String,
org.apache.daffodil.lib.xml.NS)]),scala.collection.immutable.Map[String,scala.collection.immutable.Set[(String,
org.apache.daffodil.lib.xml.NS)]]]
[error] allBindings.groupBy { _._1 }.view.mapValues { _.map { _._2 }
}.toMap
[error] ^
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]