question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Define unicode operators

See original GitHub issue

The unicode alternatives of the operators are brilliant. But is there any way that I can define my own one?

For example, I’m writing a function that checks whether a variable is an element of a set, which is either a finite one (a list, e.g., ⟦1,3,5,7,9⟧), or a range over an ordered field (e.g., ⟦1…100, ℝ⟧). I can define the infix function `elemOf` (with back-ticks), but can I make an alias to the unicode symbols: , (without back-ticks), etc.?

Also, is it possible to map a data constructor to a unicode symbol set? Like use ⟦...⟧ as an alternative to the set(...) constructor.

Maybe this is a very stupid question, but can anyone point out some other references to solving my problem? I am a haskell guy and I’m really new in coconut and python.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
evhubcommented, Oct 4, 2022

This is now live on coconut-develop>=2.0.0-post_dev4! Check out the develop documentation for more info.

0reactions
evhubcommented, Mar 4, 2022

Thanks; glad to hear it!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unicode - Wikipedia
Unicode, formally The Unicode Standard, is an information technology standard for the consistent encoding, representation, and handling of text expressed in ...
Read more >
What is Unicode? - Twilio
Unicode is an international character encoding standard that provides a unique number for every character across languages and scripts, making almost all ...
Read more >
Definition of Unicode - PCMag
A character code that defines every character in most of the speaking languages in the world. Although commonly thought to be only a...
Read more >
What is Unicode?
The Unicode Standard provides a unique number for every character, no matter what platform, device, application or language. It has been adopted ...
Read more >
What is Unicode?
The Unicode Standard is the universal character representation standard for text in computer processing. · The Unicode Standard defines code points (unique ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found