Trinity UniversityTrinity University Computer Science

Principles of Functional Languages

Course Outline [ HTML ] [ PS ] [ PDF ]
Guidlines for Choosing a Password
Class Files
Class Discussion List
HyperText Markup Language
J Software
The J Help System
Juggle (J on Unix; Martin Neitzel's J Work)
About the J Programming Language
J Primer [ HTML ] [ PS ] [ PDF ]
J Dictionary [ HTML ] [ PS ] [ PDF ]
J Phrases [ HTML ] [ PS ] [ PDF ]
Other J Documentation
GNU Plot Manual [ PS ] [ PDF ]
ACM Special Intrest Group on APL and J SIGAPL
Journal of the British APL Association Vector
J Frequently Asked Questions
Symbol Minded
Tom Van Vleck's Software Engineering Stories
Tom Van Vleck's Stories from the MULTICS System
Computer Jargon Dictionary
Latest J Books
Succinctness is Power by Paul Graham

A Small Sampling of Dr. Kenneth E. Iverson's J Papers and Awards

Computers and Mathematical Notation [ HTML ]
Math for the Layman [ HTML ]
Programming Notation in Systems Design [ PDF ]
IBM Fellow [ HTML ]
ACM Turing Award [ HTML ]
A Celebration of the life of Kenneth Eugene Iverson

Professor Keith Smillie's J Papers

Beginning J [ PS ] [ PDF ] [ jbegin.ijs ]
Some Notes on Introducing J with Statistical Applications [ PS ] [ PDF ]
J Companion for Statistical Calculations [ PS ] [ PDF ] [ jcomp.ijs ]
JSP: A J Statistical Package [ PS ] [ PDF ] [ jsp.ijs ]
J 4.01 Windows Programming Examples [ PS ] [ PDF ] [ jwinex.ijs ]
Teaching with J - An Example from Statistics [ PS ] [ PDF ]
Understanding data with J [ PS ] [ PDF ]
A Lecture on Array Languages [ PDF ]
Professor Smillie's J WEB Page

Linda Alvord and Norman Thomson

Easy-J [ PDF ] [ DOC ]

Professor Clifford A. Reiter's J Papers

Brief J Reference [ PDF ]
CD Labels and More [ HTML ]
Fractal images and music [ HTML ]
Materials for Fractals, Visualization and J, 2nd Ed [ HTML ]

Stevan Apter's "no stinking loops"

Professor Ewart Shaw's J Papers

What is J? [ HTML ]
Warwick Guide to J [ PS ] [ PDF ]

Professor John Howland's J Papers

APROL: A Hybrid Language [ PS ]
Using J as an Expository Language in the Teaching of Computer Science to Liberal Arts Students [ HTML ] [ TeX ] [ PDF ] [ PS ]
IT'S ALL IN THE LANGUAGE (Yet Another Look at the Choice of Programming Language for Teaching Computer Science) [ HTML ] [ TeX ] [ PDF ] [ PS ]
Design of an OpenGL Interface for the J Programming Language [ HTML ] [ TeX ] [ PDF ] [ PS ]
Recursion, Iteration and Functional Languages [ HTML ] [ TeX ] [ PDF ] [ PS ]
Functional Languages and Introductory Computer Science [ HTML ] [ TeX ] [ PDF ] [ PS ]
Building Models: A Direct but Neglected Approach to Teaching Computer Science [ HTML ] [ TeX ] [ PDF ] [ PS ]

Other Papers

J for the APL Programmer, Burke and Hui [ HTML ]

Course Notes Lecture 1 [ HTML ] [ PS ] [ PDF ]
Data Structures
Notes on Algorithms
Notes on Program Execution Time
Notes on Evaluating the Recursive Fibonacci Function
Notes on Measuring the Performance of a Datastructure
IEEE Floating Point Formats
Exam 2 EC [ PS ] [ PDF ]
Notes on Solving Sets of Linear Equations [ HTML ] [ PS ] [ PDF ]
Notes on 2D Graphics [ HTML ] [ PS ] [ PDF ]
Final Project [ HTML ] [ PS ] [ PDF ]
Laboratory Problems Laboratory Problem 1 HTML | PS | PDF
Laboratory Problem 2 HTML | PS | PDF
Laboratory Problem 3 HTML | PS | PDF
Laboratory Problem 4 HTML | PS | PDF
Extra Credit Problem 4 HTML | PS | PDF
Laboratory Problem 5 HTML | PS | PDF
Laboratory Problem 6 HTML | PS | PDF
Laboratory Problem 7 HTML | PS | PDF
Laboratory Problem 8 HTML | PS | PDF
Extra Credit Problem 8 HTML | PS | PDF
Laboratory Problem 9 HTML | PS | PDF
Laboratory Problem 10 HTML | PS | PDF
Laboratory Problem 11 HTML | PS | PDF
Laboratory Problem 12 HTML | PS | PDF
Laboratory Problem 13 HTML | PS | PDF
Laboratory Problem 14 HTML | PS | PDF
Laboratory Problem 15 HTML | PS | PDF
Laboratory Problem 16 HTML | PS | PDF
Laboratory Problem 17 HTML | PS | PDF
Laboratory Problem 18 HTML | PS | PDF

Date: Thu, 8 Mar 2001 09:23:02 -0500
From: Roger Hui 
Reply-To: forum@jsoftware.com
To: APL Mailing List , J Forum , TimTroyR@ionet.net
Subject: Jforum: Re: New Scientist Puzzle and Oddball Languages

NB. a solution in J (http://www.jsoftware.com) to the 99 Bottles of Beer problem.

   bob =: ": , ' bottle'"_ , (1: = ]) }. 's of beer'"_
   bobw=: bob , ' on the wall'"_
   beer=: bobw , ', '"_ , bob , '; take one down and pass it around, '"_ , bobw@<:

NB. For example:

   beer"0 >:i.-5
5 bottles of beer on the wall, 5 bottles of beer; take one down and pass it around, 4 bottles of beer on the wall
4 bottles of beer on the wall, 4 bottles of beer; take one down and pass it around, 3 bottles of beer on the wall
3 bottles of beer on the wall, 3 bottles of beer; take one down and pass it around, 2 bottles of beer on the wall
2 bottles of beer on the wall, 2 bottles of beer; take one down and pass it around, 1 bottle of beer on the wall
1 bottle of beer on the wall, 1 bottle of beer; take one down and pass it around, 0 bottles of beer on the wall
   beer"0 >:i.-10
10 bottles of beer on the wall, 10 bottles of beer; take one down and pass it around, 9 bottles of beer on the wall
9 bottles of beer on the wall, 9 bottles of beer; take one down and pass it around, 8 bottles of beer on the wall
8 bottles of beer on the wall, 8 bottles of beer; take one down and pass it around, 7 bottles of beer on the wall
7 bottles of beer on the wall, 7 bottles of beer; take one down and pass it around, 6 bottles of beer on the wall
6 bottles of beer on the wall, 6 bottles of beer; take one down and pass it around, 5 bottles of beer on the wall
5 bottles of beer on the wall, 5 bottles of beer; take one down and pass it around, 4 bottles of beer on the wall
4 bottles of beer on the wall, 4 bottles of beer; take one down and pass it around, 3 bottles of beer on the wall
3 bottles of beer on the wall, 3 bottles of beer; take one down and pass it around, 2 bottles of beer on the wall
2 bottles of beer on the wall, 2 bottles of beer; take one down and pass it around, 1 bottle of beer on the wall
1 bottle of beer on the wall, 1 bottle of beer; take one down and pass it around, 0 bottles of beer on the wall
   beer"0 >:i.-101
101 bottles of beer on the wall, 101 bottles of beer; take one down and pass it around, 100 bottles of beer on the wall
100 bottles of beer on the wall, 100 bottles of beer; take one down and pass it around, 99 bottles of beer on the wall
99 bottles of beer on the wall, 99 bottles of beer; take one down and pass it around, 98 bottles of beer on the wall
...


Trinity University

Site Index
Comments or Suggestions
Computer Science Department
Trinity University
One Trinity Place
San Antonio, Texas 78212-7200
voice: (210) 999-7480
fax: (210) 999-7477

Trinity google site search
CS WebMail
CS ListServer