jazoma's recent timeline updates
jazoma

jazoma

V2EX member #301031, joined on 2018-03-17 23:00:20 +08:00
jazoma's recent replies
May 1, 2018
Replied to a topic by enm 程序员 想写一个更高智商的编程语言
这样的语言早就有了,而且有很多,它们都合起来就叫"面向员工编程语言", 使用这门语言的程序员叫老板。
-from functools import reduce
-
-def f(ys,s=[]):
-----x,xs = ys
-----if type(xs) != tuple:
---------return reduce(lambda x,y: (y,(x)), s+[x,xs])
-----return f(xs,s+[x])
from functools import reduce

def f(ys,s=[]):
x,xs = ys
if type(xs) != tuple:
return reduce(lambda x,y: (y,(x)), s+[x,xs])
return f(xs,s+[x])
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5427 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 18ms · UTC 09:16 · PVG 17:16 · LAX 02:16 · JFK 05:16
♥ Do have faith in what you're doing.