bookmark

Change in matching behaviour? | The Scala Programming Language


Description

This matches Elems with one child. :) If you want to match any number of children, replace the last "_" with "_*" . All part of the magic of unapplySeq. :)

Preview

Tags

Users

  • @sac

Comments and Reviews