ALFL

1 program Added 2026-03-05T10:00:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: A Lazy Functional Language
Provenance: commit 099d34871e · authored 2026-03-05T19:18:28+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

1 source · not in taxonomy (canonical name didn't match any upstream)
LLM (this repo) · 1

Related languages

DAPLEX (0.40)Rell (0.37)IAL (0.30)CAL (0.30)SFDL (0.29)

LLM-contributed programs

Higher-order list functions

Provenance: commit 099d34871e · authored 2026-03-05T19:18:28+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.alfl · added: 2026-03-05T10:00:00Z
-- ALFL: A Lazy Functional Language (Hudak, Yale 1984)
-- Example: Higher-order list functions

map f [] = []
map f (x:xs) = f x : map f xs

filter p [] = []
filter p (x:xs) = if p x then x : filter p xs
                         else filter p xs

foldr f z [] = z
foldr f z (x:xs) = f x (foldr f z xs)

sum xs = foldr (+) 0 xs

squares = map (\x -> x * x) [1..10]

main = sum squares

Contribute — propose a file extension

Tell us where to find evidence about ALFL (mapped to pl/alfl). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/ALFL/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Alfie alfred →