last day (1279 days later) » 

05:21
In this room we will share Scala solutions for code golf problems
 
2 hours later…
07:00
0
A: Sequences of distinct positive integers

Tomer ShetahScala, 132 124 bytes n=>1.to(n-1).toSet.subsets().map(_.+(n)).flatMap(_.toSeq.permutations).toSeq.sorted(Ordering.Implicits.seqOrdering[Seq,Int]) Try it online!

 
2 hours later…
08:44
Hello scalers
 
4 hours later…
12:32
Hello everyone!
13:01
By the way, I nominated Scala for language of the month. Make sure to vote for it if you like it!
@user sure
13:17
Nice @user!
Hi everyone, I hoped we can use this chat room to share our golfs in scala
So welcome aboard :)
0
A: Mathematics is fact. Programming is not

Tomer ShetahScala, 65 63 bytes s=>(s.takeWhile(_=='!').length%2-(if(s.last=='0')0 else 1)).abs Try it online!

Happy to be here
 
6 hours later…
18:57
I was working on this question:
3
Q: Create an Accurate How-To Article

SunnyMoonHere is an easy-intermediate challenge for anyone interested! What is that? A thing me and brother do a bit too often is this: One of us has a problem and asks the other to explain how to do certain stuff. The other just says the following carelessly: How to <verb> in <n> easy steps! ...

It's harder than it looks. Anyone have ideas for further compression and stuff? (I've got q=>{val(r,s"How do I $v?")=(math.random*10).toInt+1->q;1 to r-1 map{i=>s"Step $i - Do not $v."}mkString(s"How to $v in $r easy steps!\n\n","\n",s"\nStep $r - ${v.capitalize}.")} so far
 
4 hours later…
22:55
Does anyone have any Scala answers you're particularly proud of or really cool answers by others that you've found? I wanted to add it to my answer nominating Scala for Language of the Month.

  last day (1279 days later) »