我正試圖找到一種快速方法來轉換時間序列數據從關係數據庫(從單個sql查詢)導入到表單中 ticker date price num_tickers num_dates
------- ---- -------- ---------- ---------
t001 d1 pr001_d1 k n
t001 d2 pr001_d2 k n
...
t001 dn
我想在Haskell中實現Ravi Sethi的小被子語言。塞西的小被子的概述可以在這裏看到:http://poj.org/problem?id=3201 下面是我迄今爲止功能: import Data.List.Split
rotate :: Int -> [a] -> [a]
rotate n xs = iterate rot xs !! n
where
rot x