},
{
"cell_type": "code",
- "execution_count": 33,
+ "execution_count": 52,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
- "[1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10]"
+ "\"rullddrrruuulllldddd\""
]
},
"metadata": {},
}
],
"source": [
- "take 20 steps"
+ "take 20 $ concat $ zipWith replicate steps $ cycle \"ruld\""
]
},
{
},
{
"cell_type": "code",
- "execution_count": 51,
+ "execution_count": 47,
"metadata": {},
"outputs": [],
"source": [
},
{
"cell_type": "code",
- "execution_count": 52,
+ "execution_count": 49,
"metadata": {},
"outputs": [
{
},
{
"cell_type": "code",
- "execution_count": 53,
+ "execution_count": 50,
"metadata": {},
"outputs": [
{