Numbers: the full set of types, and real literals that take their type
The numeric types table lists bigint, int128, uint128, float and decimal. A real literal without a suffix is a double, float or decimal as the context says. A boolean prints as #t. 🤖 Generated with [ECA](https://eca.dev) Co-Authored-By: eca-agent <git@eca.dev>
This commit is contained in:
parent
bd71102c19
commit
481538a1cb
2 changed files with 22 additions and 13 deletions
|
|
@ -1718,7 +1718,7 @@ Literal prefixes like @code{#map(...)} are reader-level hash macros. You can reg
|
|||
(defun (main)
|
||||
(println #card(Q hearts)) ;; Q♥
|
||||
(println #card[10 spades]) ;; 10♠, either bracket works
|
||||
(println (court? #card(K clubs))) ;; True
|
||||
(println (court? #card(K clubs))) ;; #t
|
||||
(with-each-card (c [#card(A spades) #card(2 hearts)])
|
||||
(println #"a card: ${c}"))
|
||||
0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue