Sha256: 571aaa2e04546ab2ab74fa5fdb7a1cbffa716e0a647538528ff6ab64dbf8d82c

Contents?: true

Size: 1.02 KB

Versions: 165

Compression:

Stored size: 1.02 KB

Contents

# List Ops

Implement basic list operations.

In functional languages list operations like `length`, `map`, and
`reduce` are very common. Implement a series of basic list operations,
without using existing functions.

## Hints

The tests for this exercise require you to use extensions, a mechanism for adding new functionality to an existing class whose source you do not directly control without having to subclass it. To learn more about Kotlin's implementations of extensions, check out the [official documentation](https://kotlinlang.org/docs/reference/extensions.html#extensions).

The `customFoldLeft` and `customFoldRight` methods are "fold" functions, which is a concept well-known in the functional programming world, but less so in the object-oriented one. If you'd like more background information, check out this [fold](https://en.wikipedia.org/wiki/Fold_(higher-order_function)) page.





## Submitting Incomplete Solutions
It's possible to submit an incomplete solution so you can see how others have completed the exercise.

Version data entries

165 entries across 165 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/kotlin/exercises/list-ops/README.md
trackler-2.2.1.179 tracks/kotlin/exercises/list-ops/README.md
trackler-2.2.1.178 tracks/kotlin/exercises/list-ops/README.md
trackler-2.2.1.177 tracks/kotlin/exercises/list-ops/README.md
trackler-2.2.1.176 tracks/kotlin/exercises/list-ops/README.md
trackler-2.2.1.175 tracks/kotlin/exercises/list-ops/README.md
trackler-2.2.1.174 tracks/kotlin/exercises/list-ops/README.md
trackler-2.2.1.173 tracks/kotlin/exercises/list-ops/README.md
trackler-2.2.1.172 tracks/kotlin/exercises/list-ops/README.md
trackler-2.2.1.171 tracks/kotlin/exercises/list-ops/README.md
trackler-2.2.1.170 tracks/kotlin/exercises/list-ops/README.md
trackler-2.2.1.169 tracks/kotlin/exercises/list-ops/README.md
trackler-2.2.1.167 tracks/kotlin/exercises/list-ops/README.md
trackler-2.2.1.166 tracks/kotlin/exercises/list-ops/README.md
trackler-2.2.1.165 tracks/kotlin/exercises/list-ops/README.md
trackler-2.2.1.164 tracks/kotlin/exercises/list-ops/README.md
trackler-2.2.1.163 tracks/kotlin/exercises/list-ops/README.md
trackler-2.2.1.162 tracks/kotlin/exercises/list-ops/README.md
trackler-2.2.1.161 tracks/kotlin/exercises/list-ops/README.md
trackler-2.2.1.160 tracks/kotlin/exercises/list-ops/README.md