Skip to content

Commit

Permalink
A comment change
Browse files Browse the repository at this point in the history
  • Loading branch information
Dean Wampler committed Nov 6, 2021
1 parent 521bb37 commit 1826b66
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ work(O2)(fas) // Returns: "<found: O2>"
// tag::doesnotwork[]
// This section doesn't appear in the book.
// The first syntax here may be the first supported in a subsequent Scala 3 release.
// As of Scala 3.1.0, none of these variants compile.
val pf2a = [A] => (seq: Seq[A]) => (using n: Numeric[A]) =>
seq.reduce((a,b) => n.times(a,b))
val pf2b = [T] => (seq: Seq[T]) => (using Numeric[T]) => // anonymous disallowed
Expand Down

0 comments on commit 1826b66

Please sign in to comment.