ramda.py:Ramda.js的Python克隆

时间:2024-06-13 07:20:04
【文件属性】:

文件名称:ramda.py:Ramda.js的Python克隆

文件大小:182KB

文件格式:ZIP

更新时间:2024-06-13 07:20:04

python functional-programming ramda fp curry

ramda.py Python克隆 ( 改良叉 pip install ramda >> > from ramda import * >> > inc ( 1 ) 2 >> > map ( inc , [ 1 , 2 , 3 ]) [ 2 , 3 , 4 ] >> > incEach = map ( inc ) >> > incEach ([ 1 , 2 , 3 ]) [ 2 , 3 , 4 ] #Docs T ( * args ) """A function that always returns true. Any passed in parameters are ignored""" add ( x , y ) """Adds two values""" adjust ( f , i , xs ) """Applies a function to t


网友评论