You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import Data.SnocList
replicateTR:Nat-> a ->List a
replicateTR n v = go n Nilwherego:Nat->List a ->List a
go 0 xs = xs
go (S k) xs = go k (v :: xs)
main:IO()
main = printLn .length$ [1..5000] >>= (\n => replicateTR n n)
Expected Behavior
Runs in a few seconds on reasonably modern hardware.
Observed Behavior
Still not done while I write this issue... But I'll submit a PR with a fix soonish.
The text was updated successfully, but these errors were encountered:
Steps to Reproduce
Build and run the following program:
Expected Behavior
Runs in a few seconds on reasonably modern hardware.
Observed Behavior
Still not done while I write this issue... But I'll submit a PR with a fix soonish.
The text was updated successfully, but these errors were encountered: