this post was submitted on 29 Jun 2025
1 points (100.0% liked)

AI Detox

56 readers
1 users here now

Verifiable tasks, exercises and puzzles. Non-passively consumable pieces of knowledge. Creativity-games and analogue physical tasks. Summed up: everything that gives your brain something to do without AI.

founded 1 week ago
MODERATORS
 

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

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here