Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def map = self : Array,index : Int,mapper(t) -> t do
- i = index
- while i < self.len() do
- self(i) = mapper(self(i))
- i++..
- def mapIndex = self : Array,index : Int,mapper(i, t) -> t do
- i = index
- while i < self.len() do
- self(i) = mapper(i, self(i))
- i++..
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement