Re:C#: IEnumerable, yield return, and lazy evaluation
by shirogane86x on Friday June 17, 2022 @05:52AM
(#31776053)
F# will always assume that the types can be heterogeneous, there's nothing in F# that gives (*) or (+) any sort of special behaviour, so it doesn't conform to an interface. Operators will usually always have an (inline) type of form
because you could technically define a
and there's nothing saying that you can't. in that case:
and the second one won't work, because ^c =/= ^c
[ Parent
| on HN ]
Re:C#: IEnumerable, yield return, and lazy evaluation
by occamrazor on Friday June 17, 2022 @01:24PM
(#31781386)
I see, but in this case the multiplication is “b * b”, which has type “^c * ^c”.