View Code? Open in Web Editor
NEW
A scala implementation of useful algorithms
License: Apache License 2.0
salgo's Introduction
- Abstraction is great, but not too much.
- Optimize for simplicity, but not easy.
- Pick the right defaults, opt-in vs opt-out.
salgo's People
Contributors
Watchers
salgo's Issues
Array view is a partial view of an multi-dimensional array.
val arr = Array(...)
val view = arr.viewP(1 to 2, 3 to 4, 4 to 3 by -1, Reversed, All)
println(view(0, 1, 2))
view(2, 1, 2) = "abc"
Problem
- alterable dimensions
- types of the viewP method