1 ▲ 1 ▼ 99 Haskell Problems - Problem 3 (feddit.org) submitted 1 year ago* by blueberry@feddit.org [M] to c/ai_detox@feddit.org comment fedilink Problem 3 (*) Find the K'th element of a list. Solutions The first element in the list is number 1. Example: * (element-at '(a b c d e) 3) c Example in Haskell: elementAt [1,2,3] 2 2 elementAt "haskell" 5 'e'
2 ▲ 1 ▼ 99 Haskell Problems - Problem 2 (feddit.org) submitted 1 year ago* by blueberry@feddit.org [M] to c/ai_detox@feddit.org comment fedilink Problem 2 (*) Find the last-but-one (or second-last) element of a list. (Note that the Lisp transcription of this problem is incorrect.) Example in Haskell: myButLast [1,2,3,4] 3 myButLast ['a'..'z'] 'y' Source: https://wiki.haskell.org/index.php?title=99_questions%2F1_to_10
3 ▲ 2 ▼ Haskell Wiki - 99 Question - Question 2 (wiki.haskell.org) submitted 1 year ago* by blueberry@feddit.org [M] to c/ai_detox@feddit.org comment fedilink Problem 2 (*) Find the last-but-one (or second-last) element of a list. Solutions (Note that the Lisp transcription of this problem is incorrect.) Example in Haskell: myButLast [1,2,3,4] 3 myButLast ['a'..'z'] 'y'
4 ▲ 8 ▼ Swamp Thing : the saga of the Swamp Thing by Moore, Alan, 1953 (archive.org) submitted 1 year ago by blueberry@feddit.org [M] to c/ai_detox@feddit.org 5 comments fedilink
5 ▲ -1 ▼ AI Detox: read the complete Wikipedia article about Otokichi, a Japanese castaway who floated all the way to America. The journey took 14 months. (en.wikipedia.org) submitted 1 year ago* (last edited 1 year ago) by blueberry@feddit.org [M] to c/ai_detox@feddit.org 1 comment fedilink
6 ▲ 1 ▼ AI Detox: Write a Haiku about Linux (feddit.org) submitted 1 year ago* (last edited 1 year ago) by blueberry@feddit.org [M] to c/ai_detox@feddit.org comment fedilink
7 ▲ 2 ▼ Ninety-Nine Haskell Problems - Problem 1 (wiki.haskell.org) submitted 1 year ago* by blueberry@feddit.org [M] to c/ai_detox@feddit.org comment fedilink Problem 1 (*) Find the last element of a list. Solutions (Note that the Lisp transcription of this problem is incorrect.) Example in Haskell: myLast [1,2,3,4] 4 myLast ['x','y','z'] 'z'