Tags » Haskell

Higher-order functions in Haskell

Dear blog, I’ve got the hots for Haskell.
Its terse syntax is intimidating at first, but as you keep exploring, you start seeing its beauty and even possible ways to write a Hello World program. 524 more words

Ideas

DMP Photobooth: On the Road to 2.0

It’s been a busy few months for me, and things have been quiet here. Quiet, but not forgotten; big things are in the works! What big things you ask? 1,018 more words

Programming

Problem 20

99 Haskell Problems

Problem 20

(*) Remove the K’th element from a list.

Example in Prolog:

?- remove_at(X,,2,R).
X = b
R = 

Example in Lisp: 92 more words

Haskell

Problem 19

99 Haskell Problems

Problem 19

(**) Rotate a list N places to the left.

Hint: Use the predefined functions length and (++).

Examples:

* (rotate '(a b c d e f g h) 3)
(D E F G H A B C)

* (rotate '(a b c d e f g h) -2)
(G H A B C D E F)
… 75 more words
Haskell

Problem 18

99 Haskell Problems

Problem 18

(**) Extract a slice from a list.

Given two indices, i and k, the slice is the list containing the elements between the i’th and k’th element of the original list (both limits included). 96 more words

Haskell

Problem 17

99 Haskell Problems

Problem 17

(*) Split a list into two parts; the length of the first part is given.

Do not use any predefined predicates. 150 more words

Haskell

Haskell, Functionall programmin

calculate the sample mean of a list of number by recursion. implement sample variance? implement sample median? I have done this for just for sample mean I am struggling with sample variance by recursion, sample variance, and sample median? 27 more words

Recent Questions - Stack Overflow