You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been just trying to explore FP in go and found this. I tried to open the code but met following error: interface{} does not implement comparable [InvalidTypeArg]
The code has such an error is in stream.go: // StreamFromInterface New Stream instance from an array func StreamFromInterface(list ...interface{}) *StreamDef[interface{}] { return StreamFromArray(list) }
Line 17 to line 21
I'm using go 1.18 on MacOs 12.3
The text was updated successfully, but these errors were encountered:
Because we use map[key]value to deduplicate items & sort etc,
and key must be comparable constrants after golang 1.18.
so now FromInterface/FromArrayInterface methods of Stream/StreamSet have been removed.
All tests are passed on golang 1.18,
and the problems are fixed in fpGo v2.0.0
I've been just trying to explore FP in go and found this. I tried to open the code but met following error:
interface{} does not implement comparable [InvalidTypeArg]
The code has such an error is in
stream.go
:// StreamFromInterface New Stream instance from an array func StreamFromInterface(list ...interface{}) *StreamDef[interface{}] { return StreamFromArray(list) }
Line 17 to line 21
I'm using go 1.18 on MacOs 12.3
The text was updated successfully, but these errors were encountered: