Post History
Ruby, 22 bytes ->{(1.._2).reduce &_1} Try this online! Without using reduce (28 bytes): f=->g,n{n<2?n:g[n,f[g,n-1]]} Try this online!
Answer
#1: Initial revision
# [Ruby](https://www.ruby-lang.org/), 22 bytes ```ruby ->{(1.._2).reduce &_1} ``` **[Try this online!](https://ato.pxeger.com/run?1=m72kqDSpcsHiNNuYpaUlaboW23TtqjUM9fTijTT1ilJTSpNTFdTiDWshkjfVC0pLihXSooGK4g21441qdUxiuZDFtEBiprEQ5QsWQGgA)** Without using `reduce` (28 bytes): ```ruby f=->g,n{n<2?n:g[n,f[g,n-1]]} ``` **[Try this online!](https://ato.pxeger.com/run?1=m72kqDSpcsGCpaUlaboWe9Jsde3SdfKq82yM7POs0qPzdNKigXxdw9jYWoiSm-oFpSXFCmnRunbV8Yba8Ua1OiaxXMhiWiAx01iIcpjJAA)**