Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.haskell > #463

Re: how to use dynamic variable programming in haskell?

From Mark Carroll <mtbc@bcs.org>
Newsgroups comp.lang.haskell
Subject Re: how to use dynamic variable programming in haskell?
Date 2016-10-06 09:53 +0100
Organization none
Message-ID <87fuo9uadm.fsf@ixod.org> (permalink)
References <210c7a80-235b-4c56-9bb8-1b2872626986@googlegroups.com> <87r37tgb7m.fsf@ixod.org> <8594409c-d02f-4bd3-855a-017c3466757c@googlegroups.com>

Show all headers | View raw


On 06 Oct 2016, Ho Yeung Lee wrote:

> i can parse already and got exactly which digit it return in espresso,
>
> i only do not know how to dynamic create variables 
>
> if 3 variables, for example it will be a == 1 && b == 0 && c == 0
>
> if 4 variables, for example it will be a == 0 && b == 1 && c == 0 && d == 1
>
> but without 
> let a = 
> let b =
> let c =
>
> assignment before it write into expression of if statement.
>
> how to create this dynamic statement for if statement use ?

Maybe it would be better to just keep them in a list? Might your if
statement do better as pattern-matching?

-- Mark

Back to comp.lang.haskell | Previous | NextPrevious in thread | Find similar | Unroll thread


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