Zulip Chat Archive
Stream: lean4
Topic: Literal Map syntax?
Mac (Jul 28 2021 at 12:35):
Is there any builtin Lean 4 syntax for creating literal Maps (ex. RBMap
/HashMap
) akin to JSON's record syntax (or Lean's own record syntax for structures)? If not, is this a possible future feature?
Notification Bot (Jul 28 2021 at 12:35):
Mac has marked this topic as resolved.
Notification Bot (Jul 28 2021 at 12:35):
Mac has marked this topic as unresolved.
Mario Carneiro (Jul 28 2021 at 13:04):
Nothing built in, but lean 3 has a syntax for this a la {a, b, c}
, and it is not difficult to write something equivalent yourself
Last updated: Dec 20 2023 at 11:08 UTC