Add langs Cherrycake and Insitux
This commit is contained in:
parent
633b36288a
commit
9817d9b99b
36 changed files with 132 additions and 0 deletions
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
:a "value" ;keyword key, string value
|
||||
:b 123 ;keyword key, number value
|
||||
456 [1 2 3] ;number key, vector value
|
||||
[5 6 7] :b ;vector key, keyword value
|
||||
{:a 1} {:b 2} ;dictionary key, dictionary value
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
;use dictionary as function for lookup; commas for readability, treated as white-space
|
||||
> ({:a 1, :b 2, :c 3} :b)
|
||||
2
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
;extend existing dictionary by using it as a function with two arguments
|
||||
> ({:a 1, :b 2, :c 3} :b 3)
|
||||
{:a 1, :b 3, :c 3}
|
||||
Loading…
Add table
Add a link
Reference in a new issue