services: configuration: Rewrite 'alist?' procedure.
* gnu/services/configuration.scm (alist?): Rewrite. Co-authored-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
		
							parent
							
								
									cc6b88d00d
								
							
						
					
					
						commit
						9336baf258
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -436,7 +436,11 @@ the list result in @code{#t} when applying PRED? on them."
 | 
			
		|||
(define list-of-strings?
 | 
			
		||||
  (list-of string?))
 | 
			
		||||
 | 
			
		||||
(define alist? list?)
 | 
			
		||||
(define alist?
 | 
			
		||||
  (match-lambda
 | 
			
		||||
    (() #t)
 | 
			
		||||
    ((head . tail) (and (pair? head) (alist? tail)))
 | 
			
		||||
    (_ #f)))
 | 
			
		||||
 | 
			
		||||
(define serialize-file-like empty-serializer)
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Reference in a new issue