K Fragments
The article discusses the author's experience of reviewing and digitizing their work notebooks, which contain around 900 handwritten pages. It highlights various programming fragments that solve problems or illustrate idioms, primarily in the K programming language. The author notes the similarities in solutions among different programmers and provides examples of specific functions and their applications.
- ▪The author digitized approximately 900 handwritten pages from their work notebooks.
- ▪The article features various K programming fragments that solve interesting problems.
- ▪Examples include functions for Pascal's Triangle, matrix determinants, and merging dictionaries.
Opening excerpt (first ~120 words) tap to expand
K Fragments I recently reviewed and digitized my work notebooks from the last four years- about 900 handwritten pages. In the process, I collected a number of short K fragments which solve interesting problems or illustrate idioms. Most of these I personally “discovered”, but in some cases I later found find prior art elsewhere on the internet. This provides a nice illustration of how crystalline K programs can be: presented with the same problem, two programmers are surprisingly likely to arrive at character-for-character identical solutions. Since these were mostly composed at work, many are k3-based. I have annotated which fragments work in several dialects. Accumulator Generator (oK only) In oK, dyadic .
…
Excerpt limited to ~120 words for fair-use compliance. The full article is at Beyondloom.