Code Monkey home page Code Monkey logo

pure.lexicals's People

Contributors

yhm-amber avatar yii-iiy avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

yhm-amber

pure.lexicals's Issues

Docs and Notes

Docs is 101 articles, notes is more things.

How about ?

pair 的部分

可以做一个小写的 record ,接收一个 tuple 再接收一个 f 然后应用这个 f 的前两个参数。

这样就可以删掉那些花括号的部分了。包括 pair 。

可以再加一个文档什么的来介绍一下这个 record 函数与(貌似是)解包的能力的对应:先简单例子,再贴数列那个,作为复杂例。一个用于讲解,一个用于证明可用场景(就叫可用场景例)。

Java works ...

To fix the generic val unsupported

final var birds = 
new Object() 
{
	<A> Function<A,A> idiot () { return (Function<A,A>) (a -> a) ;}
} ;

birds.idiot().apply(7) ; // 7

method is value.

and, iife, also can use this.

TS 尾递归优化

把 List 也变成 lacking 的。如何?

ref: https://cs3110.github.io/textbook/chapters/ds/sequence.html

无非是多一个 Done ,相对于迭代器。迭代器则是没有 Done 。仅此而已。

迭代器的方法自成,列表的方法则全都依赖折叠。

以及,列表有 reduce 而迭代器没有。迭代器也没有普通的折叠,而是类似于 scan 的。

列表的 reduce 基于列表的折叠,迭代器的 scan 基于迭代器的折叠。这里的两种基于形式不同。

迭代器

Iter 为 Seq 和 List 的界面,后两者都为 Lazy ,一个必然有终结一个必然没有,迭代器则是可以通过 take 把 前者转为后者。

设计变更为这样。

sugg recs

pure.ts/readme.md
pure.ts/pure.ts
pure.ts/teach.md

pure pure

对象风格的就挪到 couple 里头,然后 pure 里头的 yard 要 alias 一个 line 的名但是是小写了,并增加一个它这个函数的类型限制(yard 的构造函数不删)

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.