💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、豆包、星火、月之暗面及文生图、文生视频 广告
[TOC] ## compose ### hello world ``` var compose =function(f,g){ return function(x){ return f(g(x)) } } var append1=x=>x+"_1" var append2=x=>x+"_2" var c = compose(append1,append2) console.log(c("ads")); //ads_2_1 ```