Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror

Comment Re: What is the appeal? (Score 2) 124

No, you do not have to do that. Here's an example of a custom comparison function to sort a list of strings by the second character:

a := []string{"afoo", "bbar"}
sort.Slice(a, func(i, j int) bool { return a[i][1] a[j][1] })

The inline function syntax is slightly verbose, but not terrible considering you need to write types.

Comment Mathematica (Score 2, Interesting) 823

I love how everyone here is telling you to just pencil and paper. For the past 7 years (through both college and high school), I have taken all of my math notes in Mathematica. Every symbol, even the most esoteric ones, is at most four or five keystrokes. For example, an integral like integral x=0 to inf (x^2)/xbar is quick to enter:

integral template -- ESC i n t t ESC
bound -- x = 0 TAB ESC inf ESC
value -- x C-6 2 RIGHT C-/ x C-5 UNDERSCORE

it's really quick to type, and you'll quickly learn the keystrokes from the character palette. I haven't taken a single note on paper in any of my math classes since about sophomore year of high school.

--Quentin

Slashdot Top Deals

FORTUNE'S FUN FACTS TO KNOW AND TELL: A black panther is really a leopard that has a solid black coat rather then a spotted one.

Working...