Giter Site home page Giter Site logo

kaixue-docs's Issues

kotlin_03.md 中 Sequence 部分,有一处代码示例无法编译通过

🏝️
val sequence = sequenceOf(1, 2, 3, 4)
// 👇下面这一行报错,报错信息: One type argument expected for interface List<out E>
// 👇猜测原因是 result 为 Sequence 类型,但这里声明为了 List
val result: List = sequence
    .map { i ->
        println("Map $i")
        i * 2 
    }
    .filter { i ->
        println("Filter $i")
        i % 3  == 0 
    }
👇
println(result.first()) // 👈 只取集合的第一个元素

加油扔哥!!!

O(∩_∩)O哈哈~ 关注了好久了 一直好想学习kotlin 关注项目了

关于文章 IDE 的一点建议

辛苦了各位,我看到分支中的文章中使用了‘IDE’来描述开发工具,但是“IDE”的意思是“IDE是集成开发环境(Integrated Development Environment)缩写”,而文章明显是指“IntelliJ IDEA”或者“Android Studio”,两者并不是等同的,希望不要误导读者。

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.