Function
matchVariant
(def *funcDef, lambdas []lambda)
Source from the content-addressed store, hash-verified
| 204 | } |
| 205 | |
| 206 | func matchVariant(def *funcDef, lambdas []lambda) bool { |
| 207 | // find match or detect change and error or false/nil |
| 208 | if len(def.lambdas) != len(lambdas) { |
| 209 | return false |
| 210 | } |
| 211 | for k, lambda := range lambdas { |
| 212 | if lambda.pos != def.lambdas[k].pos || lambda.id != def.lambdas[k].id { |
| 213 | return false |
| 214 | } |
| 215 | } |
| 216 | return true |
| 217 | } |
| 218 | |
| 219 | type funcDecl struct { |
| 220 | id string |
Tested by
no test coverage detected