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
We could use list comprehension to iterate over lists. Instead of map and filter (which would be even harder to implement, due to lack of functions in mapcss).
Could look like:
node[amenity=restaurant] {
text: join("\n", [
concat($a, "=", tag($a))
for $a in tag_keys()
if $a != "source"
]);
}
should produce (by omitting a tag called "source") e.g.:
amenity=restaurant
name=Foobar
cuisine=local
We have to distinguish between identifiers and variables, hence $a
We could use list comprehension to iterate over lists. Instead of map and filter (which would be even harder to implement, due to lack of functions in mapcss).
Could look like:
should produce (by omitting a tag called "source") e.g.:
Idea for list comprehensions comes from Python, see https://docs.python.org/3/tutorial/datastructures.html#list-comprehensions
The text was updated successfully, but these errors were encountered: