original_string: public function filter($collection = null, $iterator = null)
      {
          $return = array();
          foreach ($collection as $val) {
              if (call_user_func($iterator, $val)) {
                  $return[] = $val;
              }
          }
          return $return;
      }
code: public function filter($collection = null, $iterator = null)
      {
          $return = array();
          foreach ($collection as $val) {
              if (call_user_func($iterator, $val)) {
                  $return[] = $val;
              }
          }
          return $return;
      }
code_tokens: public function filter ( $ collection = null , $ iterator = null ) { $ return = array ( ) ; foreach ( $ collection as $ val ) { if ( call_user_func ( $ iterator , $ val ) ) { $ return [ ] = $ val ; } } return $ return ; }
docstring: Return an array of values that pass the truth iterator test
docstring_tokens: Return an array of values that pass the truth iterator test