Skip to content

Commit

Permalink
Merge pull request #1902 from weirdwater/main
Browse files Browse the repository at this point in the history
Allow type transformations with mapper for Map
  • Loading branch information
jurgenvinju authored Dec 29, 2023
2 parents f604f30 + c714bf6 commit 7338b14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/rascalmpl/library/Map.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ int incr(int x) { return x + 1; }
mapper(("apple": 1, "pear": 2, "orange": 3), prefix, incr);
```
}
public map[&K, &V] mapper(map[&K, &V] M, &L (&K) F, &W (&V) G)
public map[&L, &W] mapper(map[&K, &V] M, &L (&K) F, &W (&V) G)
= (F(key) : G(M[key]) | &K key <- M);
Expand Down

0 comments on commit 7338b14

Please sign in to comment.