Edit

kc3-lang/kc3/test/ikc3/list.out.expected

Branch :

  • test/ikc3/list.out.expected
  • []
    [[]]
    [[], []]
    [[], [], []]
    [[], [], [], []]
    [[], []]
    [[], [], []]
    [[], [], []]
    [[], [], [], []]
    [[], []]
    [[], [], []]
    [[], [], [], []]
    [[[], []], [], []]
    [[[]], []]
    [:a]
    [:a, :b]
    [:a, :b, :c]
    [:a | :b]
    [:a, :b | :c]
    [:a, :b, :c, :d]
    [:a, :b, :c | :d]
    [:a, :b, :c | :d]
    List.map([1, 2, 3, 4], fn (x) { x * 2 })
    [2, 4, 6, 8]
    List.reverse([1, 2, 3, 4])
    [4, 3, 2, 1]
    List.has?([:read], :read)
    true
    List.has?([:read], :write)
    false
    List.join(["1", "2", "3"], ", ")
    "1, 2, 3"
    List.each([1, 2, 3], fn (x) { puts(x) })
    1
    2
    3
    true
    List.last([1, 2, 3])
    3
    List.slice([1, 2, 3, 4, 5], 2, 4)
    [3, 4]
    List.length([])
    0
    List.length([1])
    1
    List.length([1, 2])
    2
    List.length([1, 2, 3, 4, 5])
    5
    type(":")
    Str
    [":"]
    [":"]
    List.append([], [])
    []
    List.append_one([], :x)
    [:x]