AI
Animation
CGI
Compression
Console
Database
Debug
Dialects
Dialogs
Editor
Email
Encryption
Extension
External Library
File
File Handling
Files
Financial
FTP
Game
Games
Graphics
GUI
HTML
HTTP
Internet
LDC
Markup
Math
Module
Network
Networking
None
Other - Net
Parse
Patch
Printing
Protocol
Rebol
Scheme
Scientific
SDK
Security
Shell
Sound
SQL
TCP
Testing
Text
Text Processing
UI
User Interface
Util
Utility
VID
Visualization
Web
Win API
X-File
XML
Rebol [
    Title: "Check if subset"
    Date: 19-Mar-2004
    File: %oneliner-subset.r
    Purpose: {Tells you if set1 is a subset of set2. Works for both series! and bitset! values.}
    One-liner-length: 131
    Version: 1.0.0
    Author: ["Gregg Irwin" "Ladislav Mecir"]
    Library: [
        level: 'intermediate
        platform: 'all
        type: [How-to FAQ one-liner function]
        domain: [dialects]
        tested-under: none
        support: none
        license: none
        see-also: none
    ]
]

subset?: func [{Returns true if A is a subset of B; false otherwise.} a [series! bitset!] b [series! bitset!]] [empty? exclude a b]

; The no-doc, no-type version. Only 40 bytes.
subset?: func [a b] [empty? exclude a b]


            
            
        
Copyright © 2018 Rebol Software Foundation