How does Haskell translate [ and ] into list definitions? Are they value constructors or something else? Are they new? Is there a way to define outfix syntax rather than infix?
[
]
This syntax is defined in Report , and in particular in section 3.10 . [1..6] is defined as enumFromTo 1 6 . You cannot define the syntax yourself.
[1..6]
enumFromTo 1 6
Source: https://habr.com/ru/post/950321/More articles:Create a spinning cube with CSS ONLY - cssvector does not free memory after exiting a region - c ++YII debugging entries - phpWhy is the result of re2 different from the re-module in Python? - pythonThe exact value of iostream synchronizes with ios_base :: sync_with_stdio - c ++How to configure a dashboard with all types / widgets of projects? - sonarqubeIssuing inline documents with MongoEngine - pythonIs a large blocking block inevitable in C ++ due to lack of reflection - c ++Reading multiple files in a loop using the HTML5 file API - javascriptJavaFX: updating user interface elements in a Controller class from a stream - javaAll Articles