Re: [racket-users] Re: Pretty display of tabular data?

2019-03-15 Thread Greg Hendershott
This is a great idea. Also I want to point out that: 1. Sometimes it's OK to start by sharing a repo on Git{Hub Lab}. Not everything needs to go on pkgs.racket-lang.org immediately, to be visible and share, especially early on. (To be clear, I'm not saying, "oh only perfect 1.0 things should be a

Re: [racket-users] Pretty display of tabular data?

2019-03-15 Thread Greg Hendershott
> 90% of the reason I made `raart` is because of this. > > https://docs.racket-lang.org/raart/index.html#%28def._%28%28lib._raart%2Fdraw..rkt%29._table%29%29 > > (require raart > (draw-here (table (text-rows THE-TABULAR-DATA))) Although I didn't see one in the docs, it looks like you have an examp

Re: [racket-users] printing decimals

2019-03-15 Thread Laurent
You're probably looking for `real->decimal-string`. Also take a look at ~r instead of ~a, as the former is only for numbers. On Fri, Mar 15, 2019 at 5:57 PM wrote: > Hi all, > > I've been looking through the docs for a way to print decimals to a > defined precision. > > I can get close to what

Re: [racket-users] printing decimals

2019-03-15 Thread sdgudeman
sigh good greif I was being blind its all of a page or so below ~a thank you Jon On Friday, March 15, 2019 at 12:58:58 PM UTC-5, Jon Zeppieri wrote: > > > https://docs.racket-lang.org/reference/strings.html?q=~r#%28def._%28%28lib._racket%2Fformat..rkt%29._~7er%29%29 > > On Fri, Mar 15, 2019 at 1:

Re: [racket-users] printing decimals

2019-03-15 Thread Jon Zeppieri
https://docs.racket-lang.org/reference/strings.html?q=~r#%28def._%28%28lib._racket%2Fformat..rkt%29._~7er%29%29 On Fri, Mar 15, 2019 at 1:57 PM wrote: > Hi all, > > I've been looking through the docs for a way to print decimals to a > defined precision. > > I can get close to what I want using s

[racket-users] printing decimals

2019-03-15 Thread sdgudeman
Hi all, I've been looking through the docs for a way to print decimals to a defined precision. I can get close to what I want using something like ~a and giving it a set width without having to build a function to do so. I mean I can build a function to do as its just a bit of string manip but

Re: [racket-users] Writing scribble?

2019-03-15 Thread David Storrs
An alternative is to write it in whatever editor you like (Emacs) and then either use DrRacket to render it to scribble or do it directly from the command line: $ scribble ./my_scribble_file.scrbl This will generate "./my_scribble_file.html", which you can then view in a browser. If you regenera

[racket-users] [TFP'19] second call for papers: Trends in Functional Programming 2019, 12-14 June 2019, Vancouver, BC, CA

2019-03-15 Thread p.achten
2 N D C A L L F O R P A P E R S == TFP 2019 == 20th Symposium on Trends in Functional Programming 12-14 June, 2019

[racket-users] Racket News - Issue 4

2019-03-15 Thread 'Paulo Matos' via Racket Users
I have just published Issue 4 at http://racket-news.com/2019/03/racket-news-issue-4.html Grab a coffee and enjoy! -- Paulo Matos -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it,

[racket-users] Struct subtype with default/fixed value of super-type

2019-03-15 Thread Marc Kaufmann
Hi all, suppose I have a struct `(struct fish (size name) #:transparent)` and a sub-type `(struct shark fish (scares-people?) #:transparent)`. What if I want all sharks to have size 'large by default whenever I create one, so that I create them via: (define white-shark (shark "The big white" #

Re: [racket-users] Re: Pretty display of tabular data?

2019-03-15 Thread jackhfirth
I think we should all work towards making our existing code in this area more discoverable, so we can get a better sense of what libraries for working with tables exist in the wild. To those of you who own Racket packages that provide any functionality related to data tables: I recommend adding