Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
RubenVerg committed Aug 2, 2024
1 parent a1ba386 commit 59a343a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ Marked features are supported, unmarked features are planned
* [x] `⎕u` (constant) the uppercase alphabet
* [x] `⎕l` (constant) the lowercase alphabet
* [x] `⎕d` (constant) the digits
* [ ] `⎕ts` current Unix timestamp
* [x] `⎕ts` current Unix timestamp
* [x] `⎕io` (constant) `1`
* [x] `⎕ct` (constant) `1⏨¯14`
* [x] `⎕seed` (set only) seed the random number generator
Expand Down
Binary file modified docs/interpreters/latest/tinyapl-js.wasm
Binary file not shown.
4 changes: 1 addition & 3 deletions src/TinyAPL/CoreQuads.hs
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ seed = Nilad Nothing (Just $ \x -> do
let e = DomainError "Seed must be a scalar integer"
s <- liftEither (asScalar e x) >>= liftEither . asNumber e >>= liftEither . asInt e
setSeed s) (G.quad : "seed")
ts = Nilad (Just $ do
scalar . Number . realToFrac <$> liftIO getPOSIXTime
) Nothing (G.quad : "ts")
ts = Nilad (Just $ scalar . Number . realToFrac <$> liftIO getPOSIXTime) Nothing (G.quad : "ts")

exists = Function (Just $ \x -> do
let var = show x
Expand Down

0 comments on commit 59a343a

Please sign in to comment.