Popr
1 program
Added 2026-03-04T12:00:00Z
Agent: claude-codeModel: claude-sonnet-4-6WebSearch: enabled
Evidence
Report issue
View issues
Aliases: PoprC
Provenance: commit edc785b8ef · authored 2026-03-04T23:20:39+01:00 · agent claude-code · model claude-sonnet-4-6
Sources mentioning this language
2 sources · pl_id:
pl/poprRelated languages
LLM-contributed programs
Numeric and List Module Definitions
Provenance: commit edc785b8ef · authored 2026-03-04T23:20:39+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch enabled
module num:
imports:
module stack
module control
__ max of two values
max: [] ap20 dup . dup tail | [<= !] . popr nip
__ min of two values
min: [] ap20 dup . dup tail | [> !] . popr nip
__ is argument odd?
odd: 1 &b 1 ==
even: 1 &b 0 ==
bound: [dup_under >= !] dip21 dup_under <= !
up_to: 0 swap bound
module list:
imports:
module control
module stack
module logic
__ take rightmost value from quote
head: popr nip
top: dup head
__ return the length of a list
length:
[0 swap] pushl
[[[1+] [tail] para] .]
[popr popr valid]
iterate tail head
Real programs from Software Heritage
No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)