this post was submitted on 01 Jul 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 6 days ago
MODERATORS
 

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'

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