;; -*-theme-d-*-

;; Copyright (C) 2008-2013 Tommi Höynälänmaa
;; Distributed under GNU General Public License version 3,
;; see file doc/GPL-3.

;; Expected results: translation and running OK


(define-proper-program (tests test426)


  (import (standard-library core)
	  (standard-library console-io))


  (define-simple-proc my-map1
      (((proc (:procedure (<integer>) <real> pure))
	(lst (:uniform-list <integer>)))
       (:uniform-list <real>)
       pure)
    (match-type lst
      ((<null>) null)
      ((lst2 (:nonempty-uniform-list <integer>))
       (let ((hd (car lst2))
	     (tl (cdr lst2)))
	 (cons
	  (proc hd)
	  (my-map1 proc tl))))))


  (define-simple-proc my-proc (((i <integer>)) <real> pure)
    (+ i 0.5))


  (define main
    (lambda (() <none> nonpure)
      (let ((l '(1 2 3 4 5)))
	(console-display-line
	 (my-map1 my-proc l))))))
