We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
E.g. foo = { x := 1, b := 2 }. This has also been referred to as "typeset literals".
foo = { x := 1, b := 2 }
The text was updated successfully, but these errors were encountered:
Please note that the syntax is not final and there is a discussion about what it should look like.
Sorry, something went wrong.
Following syntax is supported right now, without any changes to the parser:
main = Dictionary.empty << [ "x"~~10, "y"~~20, "z"~~3 ]
prints out {'y'=20, 'z'=3, 'x'=10}. All that's needed is to define these extension methods:
{'y'=20, 'z'=3, 'x'=10}
Dictionary.<< self add:Pair|Vector = case add of pair:Pair -> self.insert pair.first pair.second vector -> vector.fold self m-> p-> m << p Any.~~ self second = Pair.new self second
kazcw
No branches or pull requests
E.g.
foo = { x := 1, b := 2 }
. This has also been referred to as "typeset literals".The text was updated successfully, but these errors were encountered: