list - Scheme filters - "wrong value to apply: #f" -


I'm trying to filter a list based on a specific thing I've written, but when I filter Wrong value to apply: #F

The code of the predicate:

  

Code> ;;; If the string is not empty or is not filled with spaces, then define (Notatts Space? Str) (if (equal? ​​Str "") #F ((call-to-on-continuation (lambda) (Return) (for each) Lambda (C) (if (not (four-white space C)) # T # F (string-> list str)) # F)))))

This filter is my implementation (this is in a speech statement):

  (Updated-StrictList (Filter No White) Pes? Strel))   

Any ideas? Thanks!

so (call-in-on-continuation ...) The code is being wrapped in extra brackets, which means that the plan should take the result and run it in a moment as it should be run.

In general, there is a apply process in a LISP evaluator that runs processes, for example (get-proc) define (get-proc))

  (define) (display "namaskar") ((get-proc)); ==>   

You try to do the code like (# F) and since # F is not a process Apply As can not walk.

Remarks about the rest If you are not using return then you actually use the call-to-on-on-continuation And do not completely each separately for each which you are thinking. nowhitespace? will always review your code when you decide on your problems because continuity is the last expression in the body of lambda (return value).

I think you are looking for something:

  ;; Need to import (SRFI: 1) (not defined (notviewspace? Str) (every (lambda (x) (not (four-white space? X)) (list-> string string)) ;; import Need to do (srfi: 13) (not defined (notwhitespace2? Str) (not (string index str four-whitespace?)))    

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -