cmpsci220
.
hw
joinlists
package
joinlists
Linear Supertypes
AnyRef
,
Any
Ordering
Alphabetic
By inheritance
Inherited
joinlists
AnyRef
Any
Hide All
Show all
Learn more about member selection
Visibility
Public
All
Type Members
case class
Empty
[
A
]
()
extends
JoinList
[
A
] with
Product
with
Serializable
case class
Join
[
A
]
(
lst1:
JoinList
[
A
]
,
lst2:
JoinList
[
A
]
,
size:
Int
)
extends
JoinList
[
A
] with
Product
with
Serializable
sealed
trait
JoinList
[
A
]
extends
AnyRef
trait
JoinListFunctions
extends
AnyRef
You need to implement these functions
case class
Singleton
[
A
]
(
elt:
A
)
extends
JoinList
[
A
] with
Product
with
Serializable
Value Members
def
fromList
[
A
]
(
lst:
scala.List
[
A
]
)
:
JoinList
[
A
]
def
join
[
A
]
(
lst1:
JoinList
[
A
]
,
lst2:
JoinList
[
A
]
)
:
JoinList
[
A
]
def
length
[
A
]
(
lst:
JoinList
[
A
]
)
:
Int
def
splitAt
[
A
]
(
n:
Int
,
lst:
JoinList
[
A
]
)
: (
JoinList
[
A
],
JoinList
[
A
])
def
toList
[
A
]
(
lst:
JoinList
[
A
]
)
:
scala.List
[
A
]
Inherited from
AnyRef
Inherited from
Any
Ungrouped