In [2]:
include("../src/list.jl")


Out[2]:
show (generic function with 1 method)

In [9]:
b = cons(1,ListNull{Int64}())


Out[9]:
ListNode{Int64}(1,ListNull{Int64}())

In [10]:
c = cons(2,b)


Out[10]:
ListNode{Int64}(2,ListNode{Int64}(1,ListNull{Int64}()))

In [11]:
for i in c
    i
end


`start` has no method matching start(::ListNode{Int64})
while loading In[11], in expression starting on line 1

 in anonymous at no file

In [12]:
c[1]


`getindex` has no method matching getindex(::ListNode{Int64}, ::Int64)
while loading In[12], in expression starting on line 1

In [13]:
c.head


Out[13]:
2

In [14]:
pop!(c)


`pop!` has no method matching pop!(::ListNode{Int64})
while loading In[14], in expression starting on line 1

In [16]:
?isa


INFO: Loading help data...
Base.isa(x, type) -> Bool

   Determine whether "x" is of the given "type".

In [17]:
html = "Hello"


Out[17]:
"Hello"

In [18]:
typeof(html)


Out[18]:
ASCIIString (constructor with 2 methods)

In [19]:
super(ASCIIString)


Out[19]:
DirectIndexString

In [20]:
super(DirectIndexString)


Out[20]:
String

In [ ]: