Code Monkey home page Code Monkey logo

Comments (4)

rmzr7 avatar rmzr7 commented on August 26, 2024 2

I made another fork with Swift 3 PM compatibility https://github.com/remzr7/Surge

Doesn't seem like the owners care about the repo anymore

from surge.

stsievert avatar stsievert commented on August 26, 2024

I'd hold off on tagging a release; I still have to put in a PR to format for new swift changes (renaming Source => Sources, moving tests inside module).

from surge.

dmr07 avatar dmr07 commented on August 26, 2024

@remzr7 I integrated your code base and ran into a compile error. I read over the docs on Sequences and Iterators, but I'm still not sure how to fix this. I was wondering if you can help.

Error:
'Sequence' requires the types 'T' and 'ArraySlice<T>' be equivalent

Matrix.swift: 148

extension Matrix: Sequence { // <-- error occurs here
    public func makeIterator() -> AnyIterator<ArraySlice<Element>> {
        let endIndex = rows * columns
        var nextRowStartIndex = 0
        
        return AnyIterator {
            if nextRowStartIndex == endIndex {
                return nil
            }
            
            let currentRowStartIndex = nextRowStartIndex
            nextRowStartIndex += self.columns
            
            return self.grid[currentRowStartIndex..<nextRowStartIndex]
        }
    }
}

from surge.

alejandro-isaza avatar alejandro-isaza commented on August 26, 2024

Swift 3.2 supported in 2.0.0

from surge.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.