Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.haskell > #461
| From | Mark Carroll <mtbc@bcs.org> |
|---|---|
| Newsgroups | comp.lang.haskell |
| Subject | Re: how to use dynamic variable programming in haskell? |
| Date | 2016-10-06 08:58 +0100 |
| Organization | none |
| Message-ID | <87r37tgb7m.fsf@ixod.org> (permalink) |
| References | <210c7a80-235b-4c56-9bb8-1b2872626986@googlegroups.com> |
On 06 Oct 2016, Ho Yeung Lee wrote: > how to convert string "001" into a dynamic variables a,b,c ,make a == 0 && b > == 0 && c == 1 ? I'm not sure I understand your preface to this but, Prelude> let [a,b,c] = [ read [x] | x <- "001" ] :: [Int] Prelude> (a,b,c) (0,0,1) but if you get into any serious parsing then take a good luck at libraries like Parsec and Frisby. -- Mark
Back to comp.lang.haskell | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
how to use dynamic variable programming in haskell? Ho Yeung Lee <davidbenny2000@gmail.com> - 2016-10-06 00:52 -0700
Re: how to use dynamic variable programming in haskell? Mark Carroll <mtbc@bcs.org> - 2016-10-06 08:58 +0100
Re: how to use dynamic variable programming in haskell? Ho Yeung Lee <davidbenny2000@gmail.com> - 2016-10-06 01:07 -0700
Re: how to use dynamic variable programming in haskell? Mark Carroll <mtbc@bcs.org> - 2016-10-06 09:53 +0100
csiph-web