Edit

kc3-lang/kc3/.ikc3_history

Branch :

  • .ikc3_history
  • puts(inspect(%{a: 1, b: 2}))
    puts(inspect(quote if true do 1 else %{a: 1, b: 2} end))
    puts(quote if true do 1 else %{a: 1, b: 2} end)
    quote 1 + 1
    type(quote 1 + 1)
    type(quote plop(1 + 1))
    type(quote quote plop(1 + 1))
    def eval = macro (args) { args }
    eval(quote 1 + 1)
    eval(1 + 1)
    def eval = macro (args) { unquote(args) }
    eval(1 + 1)
    def eval = macro (args) { args }
    eval(1 + 1)
    eval(quote 1 + 1)
    a = %KC3.Operator{sym: :****, symbol_value: fn (a, b) { (a + b) * 4 }}
    def op_muul = %KC3.Operator{sym: :****, symbol_value: fn (a, b) { (a + b) * 4 }}
    3 **** 4
    3 //// 4
    def op_muul = %KC3.Operator{sym: :////, symbol_value: fn (a, b) { (a - b) * 4 }}
    3 //// 4
    {a, b, c} = {1, 2, 3}
    %{a: a, b: b, c: c} = %{a: 1, b: 2, c: 3}
    a
    b
    c
    Compare.str_case_insensitive("Range", "range")
    !Compare.str_case_insensitive("Range", "range")
    ! Compare.str_case_insensitive("Range", "range")
    ! 0
    quit
    q
    exit
    exit(