yes thankyou :)
On Wednesday, October 12, 2016 at 6:55:15 PM UTC+8, Duane Johnson wrote:
>
> Recursion is the basic principle on which repetition is based in
> functional languages like Elm. However, in most cases, recursion is not
> needed for day to day programming, because functions such as
Here is an Array:
```elm
import Array
Array.fromList [1, 90, 5, 2]
```
http://package.elm-lang.org/packages/elm-lang/core/4.0.5/Array
Note that in many cases a list is preferred to an Array (and they are
treated as separate types in Elm). Lists are for sequences of things that
need to be
Elm has “if", like ?: in C, and the more general “case".
If you don’t like the medium post below, maybe you would like
http://www.cas.mcmaster.ca/~anand/ThinkingComputationallyWithElm.pdf
> On Oct 16, 2016, at 6:05 PM, Patricia Nicole Benedicto
> wrote:
>
>
>
thankyou :) but how about the selection control structure and i will ask
again about how elm declaring an array? :)
On Wednesday, October 12, 2016 at 7:37:18 PM UTC+8, Eduardo Cuducos wrote:
>
> Hi Patricia,
>
> Elm, as a functional language, doesn't have for and while as declarative
>
you are the creators?
On Wednesday, October 12, 2016 at 7:29:48 PM UTC+8, Peter Damoc wrote:
>
> What do you need repetition for?
>
> If you give us some examples of what you are trying to achieve, maybe we
> can give you some examples of how that would look in Elm.
>
> If you want to process
Hi Patricia,
Elm, as a functional language, doesn't have for and while as declarative
languages. There a lot of paradigms to have in mind: the sort of problem
loops address in declarative languages usually is addressed with recursion
in Elm and other functional languages (as Duane said).
IMHO a
Recursion is the basic principle on which repetition is based in functional
languages like Elm. However, in most cases, recursion is not needed for day
to day programming, because functions such as List.map and List.foldr will
accept functions, and repeat the application of the passed-in function
hi can i ask what is the repetiton control structucture of this programming
languages?
--
You received this message because you are subscribed to the Google Groups "Elm
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to