Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

[beginner] C reading lines, and numbers

Name: Anonymous 2009-08-29 8:56

I have a file in which ever line of text is terminated with a number. I'd like to extract the text and the number to variables, how do I do that?

Name: Anonymous 2009-08-30 1:19

>>33
In exposed function names, it generally indicates strictness (e.g. foldl'). In a where clause, it generally indicates what >>33-san said.

In variable names, it usually means the updated value of an existing variable, or a value corresponding to it in some otherway.

let a' = f a
          a'' = g a'
      in h a a' a''


(x,y) + (x',y') = (x + x', y + y')

As can be see at http://hackage.haskell.org/packages/archive/ghc-prim/0.1.0.0/doc/html/src/GHC-Tuple.html#%28%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%29, clearly _ is also an option.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List