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
Hey. I want with a minimal amount of code, actively using syntactic sugar and in one call chain to calculate the frequency of repeating lines in the source line.
With the ternary operator this approach does not work, the compiler swears: "Cannot subscript a value of incorrect or ambiguous type".
But using the usual "if let" statement everything works in a distorted way.
Tell me, where did I make a mistake?
The text was updated successfully, but these errors were encountered:
+= doesn't produce a value in Swift, i.e. you can't add to a variable and produce it at the same time. However, there is a better way to get what you want anyway:
Environment
Model Name: MacBook Pro
Model Identifier: MacBookPro11,2
Processor Name: Intel Core i7
Processor Speed: 2 GHz
Number of Processors: 1
Total Number of Cores: 4
L2 Cache (per Core): 256 KB
L3 Cache: 6 MB
Memory: 8 GB
Boot ROM Version: MBP112.0146.B00
SMC Version (system): 2.18f15
Additional Detail from JIRA
md5: 310fe1d84b7eae7af46159b65104f21c
Issue Description:
Hey. I want with a minimal amount of code, actively using syntactic sugar and in one call chain to calculate the frequency of repeating lines in the source line.
With the ternary operator this approach does not work, the compiler swears: "Cannot subscript a value of incorrect or ambiguous type".
But using the usual "if let" statement everything works in a distorted way.
Tell me, where did I make a mistake?
The text was updated successfully, but these errors were encountered: